-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Expand file tree
/
Copy pathdefault.nix
More file actions
75 lines (64 loc) · 1.28 KB
/
default.nix
File metadata and controls
75 lines (64 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
{
lib,
buildPythonPackage,
fetchPypi,
# runtime
editables,
packaging,
pathspec,
pluggy,
trove-classifiers,
# tests
build,
python,
requests,
virtualenv,
}:
buildPythonPackage rec {
pname = "hatchling";
version = "1.29.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-eTwxgW2VLO5AW4NIjOABxxnzJdnNpp8fxM11BSdkDqY=";
};
# listed in backend/pyproject.toml
dependencies = [
editables
packaging
pathspec
pluggy
trove-classifiers
];
pythonImportsCheck = [
"hatchling"
"hatchling.build"
];
# tries to fetch packages from the internet
doCheck = false;
# listed in /backend/tests/downstream/requirements.txt
nativeCheckInputs = [
build
requests
virtualenv
];
preCheck = ''
export HOME=$(mktemp -d)
'';
checkPhase = ''
runHook preCheck
${python.interpreter} tests/downstream/integrate.py
runHook postCheck
'';
meta = {
description = "Modern, extensible Python build backend";
mainProgram = "hatchling";
homepage = "https://hatch.pypa.io/latest/";
changelog = "https://github.com/pypa/hatch/releases/tag/hatchling-v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
hexa
ofek
];
};
}