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
{ lib
2
, buildPythonPackage
3
, fetchFromGitHub
0
4
, pythonOlder
5
, pytestCheckHook
6
, setuptools
0
7
, numpy
8
, pandas
9
}:
···
11
buildPythonPackage rec {
12
pname = "ancp-bids";
13
version = "0.2.1";
0
14
disabled = pythonOlder "3.7";
15
-
format = "pyproject";
16
17
# `tests/data` dir missing from PyPI dist
18
src = fetchFromGitHub {
19
-
owner = "ANCPLabOldenburg";
20
-
repo = pname;
21
-
rev = "refs/tags/${version}";
22
-
hash = "sha256-Nu9pulVSZysgm/F7jl+VpoqMCiHeysZjQDQ1dT7AnpE=";
23
};
24
25
-
nativeBuildInputs = [ setuptools ] ;
0
0
0
0
0
0
0
0
0
0
0
0
26
27
-
checkInputs = [ numpy pandas pytestCheckHook ];
0
0
0
0
0
28
pythonImportsCheck = [
29
"ancpbids"
30
];
31
32
pytestFlagsArray = [ "tests/auto" ];
0
33
disabledTests = [ "test_fetch_dataset" ];
34
35
meta = with lib; {
···
1
{ lib
2
, buildPythonPackage
3
, fetchFromGitHub
4
+
, fetchpatch
5
, pythonOlder
6
, pytestCheckHook
7
, setuptools
8
+
, wheel
9
, numpy
10
, pandas
11
}:
···
13
buildPythonPackage rec {
14
pname = "ancp-bids";
15
version = "0.2.1";
16
+
format = "pyproject";
17
disabled = pythonOlder "3.7";
0
18
19
# `tests/data` dir missing from PyPI dist
20
src = fetchFromGitHub {
21
+
owner = "ANCPLabOldenburg";
22
+
repo = pname;
23
+
rev = "refs/tags/${version}";
24
+
hash = "sha256-Nu9pulVSZysgm/F7jl+VpoqMCiHeysZjQDQ1dT7AnpE=";
25
};
26
27
+
patches = [
28
+
# https://github.com/ANCPLabOldenburg/ancp-bids/pull/78
29
+
(fetchpatch {
30
+
name = "unpin-wheel-build-dependency.patch";
31
+
url = "https://github.com/ANCPLabOldenburg/ancp-bids/commit/6e7a0733002845aacb0152c5aacfb42054a9b65e.patch";
32
+
hash = "sha256-WbQRwb8Wew46OJu+zo7n4qBtgtH/Lr6x3YHAyN9ko9M=";
33
+
})
34
+
];
35
+
36
+
nativeBuildInputs = [
37
+
setuptools
38
+
wheel
39
+
];
40
41
+
nativeCheckInputs = [
42
+
numpy
43
+
pandas
44
+
pytestCheckHook
45
+
];
46
+
47
pythonImportsCheck = [
48
"ancpbids"
49
];
50
51
pytestFlagsArray = [ "tests/auto" ];
52
+
53
disabledTests = [ "test_fetch_dataset" ];
54
55
meta = with lib; {