tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
python3.pkgs.ancp-bids: depend on wheel explicitly
Theodore Ni
2 years ago
5ce95dea
d85f6412
+27
-7
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
ancp-bids
default.nix
+27
-7
pkgs/development/python-modules/ancp-bids/default.nix
···
1
1
{ lib
2
2
, buildPythonPackage
3
3
, fetchFromGitHub
4
4
+
, fetchpatch
4
5
, pythonOlder
5
6
, pytestCheckHook
6
7
, setuptools
8
8
+
, wheel
7
9
, numpy
8
10
, pandas
9
11
}:
···
11
13
buildPythonPackage rec {
12
14
pname = "ancp-bids";
13
15
version = "0.2.1";
16
16
+
format = "pyproject";
14
17
disabled = pythonOlder "3.7";
15
15
-
format = "pyproject";
16
18
17
19
# `tests/data` dir missing from PyPI dist
18
20
src = fetchFromGitHub {
19
19
-
owner = "ANCPLabOldenburg";
20
20
-
repo = pname;
21
21
-
rev = "refs/tags/${version}";
22
22
-
hash = "sha256-Nu9pulVSZysgm/F7jl+VpoqMCiHeysZjQDQ1dT7AnpE=";
21
21
+
owner = "ANCPLabOldenburg";
22
22
+
repo = pname;
23
23
+
rev = "refs/tags/${version}";
24
24
+
hash = "sha256-Nu9pulVSZysgm/F7jl+VpoqMCiHeysZjQDQ1dT7AnpE=";
23
25
};
24
26
25
25
-
nativeBuildInputs = [ setuptools ] ;
27
27
+
patches = [
28
28
+
# https://github.com/ANCPLabOldenburg/ancp-bids/pull/78
29
29
+
(fetchpatch {
30
30
+
name = "unpin-wheel-build-dependency.patch";
31
31
+
url = "https://github.com/ANCPLabOldenburg/ancp-bids/commit/6e7a0733002845aacb0152c5aacfb42054a9b65e.patch";
32
32
+
hash = "sha256-WbQRwb8Wew46OJu+zo7n4qBtgtH/Lr6x3YHAyN9ko9M=";
33
33
+
})
34
34
+
];
35
35
+
36
36
+
nativeBuildInputs = [
37
37
+
setuptools
38
38
+
wheel
39
39
+
];
26
40
27
27
-
checkInputs = [ numpy pandas pytestCheckHook ];
41
41
+
nativeCheckInputs = [
42
42
+
numpy
43
43
+
pandas
44
44
+
pytestCheckHook
45
45
+
];
46
46
+
28
47
pythonImportsCheck = [
29
48
"ancpbids"
30
49
];
31
50
32
51
pytestFlagsArray = [ "tests/auto" ];
52
52
+
33
53
disabledTests = [ "test_fetch_dataset" ];
34
54
35
55
meta = with lib; {