tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
python311Packages.line-profiler: use pytestCheckHook
natsukium
2 years ago
8fd4ec82
1115e9fc
+9
-7
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
line-profiler
default.nix
+9
-7
pkgs/development/python-modules/line-profiler/default.nix
···
4
4
, cython
5
5
, isPyPy
6
6
, ipython
7
7
-
, python
8
7
, scikit-build
9
8
, cmake
10
9
, pythonOlder
11
10
, pytestCheckHook
11
11
+
, ubelt
12
12
}:
13
13
14
14
buildPythonPackage rec {
···
30
30
scikit-build
31
31
];
32
32
33
33
-
propagatedBuildInputs = [
34
34
-
ipython
35
35
-
];
33
33
+
passthru.optional-dependencies = {
34
34
+
ipython = [ ipython ];
35
35
+
};
36
36
37
37
nativeCheckInputs = [
38
38
pytestCheckHook
39
39
-
];
39
39
+
ubelt
40
40
+
] ++ passthru.optional-dependencies.ipython;
40
41
41
42
dontUseCmakeConfigure = true;
42
43
···
44
45
rm -f _line_profiler.c
45
46
'';
46
47
47
47
-
checkPhase = ''
48
48
-
PYTHONPATH=$out/${python.sitePackages}:$PYTHONPATH cd tests && ${python.interpreter} -m unittest discover -s .
48
48
+
preCheck = ''
49
49
+
rm -r line_profiler
50
50
+
export PATH=$out/bin:$PATH
49
51
'';
50
52
51
53
pythonImportsCheck = [