tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
python313Packages.whey: follow contributing guidelines
Robert Schütz
1 year ago
53553b3c
20065b3e
+36
-10
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
whey
default.nix
+36
-10
pkgs/development/python-modules/whey/default.nix
···
1
1
{
2
2
buildPythonPackage,
3
3
-
fetchPypi,
3
3
+
fetchFromGitHub,
4
4
lib,
5
5
setuptools,
6
6
attrs,
7
7
click,
8
8
consolekit,
9
9
dist-meta,
10
10
+
docutils,
10
11
dom-toml,
11
12
domdf-python-tools,
13
13
+
editables,
12
14
handy-archives,
13
15
natsort,
14
16
packaging,
15
17
pyproject-parser,
18
18
+
pytestCheckHook,
16
19
shippinglabel,
17
20
}:
21
21
+
18
22
buildPythonPackage rec {
19
23
pname = "whey";
20
24
version = "0.1.1";
21
25
pyproject = true;
22
26
23
23
-
src = fetchPypi {
24
24
-
inherit pname version;
25
25
-
hash = "sha256-l72fjczuuDXg/cDiqJ7roNVm4X+au+1u4AA8Szs1bNo=";
27
27
+
src = fetchFromGitHub {
28
28
+
owner = "repo-helper";
29
29
+
repo = "whey";
30
30
+
tag = "v${version}";
31
31
+
hash = "sha256-s2jZmuFj0gTWVTcXWcBhcu5RBuaf/qMS/xzIpIoG1ZE=";
26
32
};
33
33
+
34
34
+
postPatch = ''
35
35
+
substituteInPlace pyproject.toml \
36
36
+
--replace-fail 'setuptools!=61.*,<=67.1.0,>=40.6.0' setuptools
37
37
+
'';
27
38
28
39
build-system = [ setuptools ];
29
40
···
41
52
shippinglabel
42
53
];
43
54
44
44
-
postPatch = ''
45
45
-
substituteInPlace pyproject.toml \
46
46
-
--replace-fail '"setuptools!=61.*,<=67.1.0,>=40.6.0"' '"setuptools"'
47
47
-
'';
55
55
+
pythonImportsCheck = [ "whey" ];
56
56
+
57
57
+
optional-dependencies = {
58
58
+
all = lib.flatten (lib.attrValues (lib.filterAttrs (n: v: n != "all") optional-dependencies));
59
59
+
editable = [
60
60
+
editables
61
61
+
];
62
62
+
readme = [
63
63
+
docutils
64
64
+
pyproject-parser
65
65
+
] ++ pyproject-parser.optional-dependencies.readme;
66
66
+
};
67
67
+
68
68
+
nativeCheckInputs = [
69
69
+
pytestCheckHook
70
70
+
];
71
71
+
72
72
+
# missing dependency pyproject-examples
73
73
+
doCheck = false;
48
74
49
75
meta = {
50
50
-
description = "A simple Python wheel builder for simple projects.";
51
51
-
homepage = "https://pypi.org/project/whey";
76
76
+
description = "Simple Python wheel builder for simple projects";
77
77
+
homepage = "https://github.com/repo-helper/whey";
52
78
license = lib.licenses.mit;
53
79
maintainers = with lib.maintainers; [ tyberius-prime ];
54
80
};