tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
python3Packages.makefun: fix build, enable tests
Martin Weinelt
4 years ago
f0af08fa
b26556ae
+12
-6
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
makefun
default.nix
+12
-6
pkgs/development/python-modules/makefun/default.nix
···
2
2
, fetchPypi
3
3
, buildPythonPackage
4
4
, setuptools-scm
5
5
+
, pytestCheckHook
5
6
}:
6
7
7
8
buildPythonPackage rec {
···
13
14
sha256 = "4d0e90ca3fdbdeb6a4a0891e2da7d4b8e80386e19e6db91ce29b8aa5c876ecfe";
14
15
};
15
16
16
16
-
nativeBuildInputs = [ setuptools-scm ];
17
17
+
postPatch = ''
18
18
+
substituteInPlace setup.cfg \
19
19
+
--replace "pytest-runner" ""
20
20
+
'';
17
21
18
18
-
# Disabling tests for now due to various (transitive) dependencies on modules
19
19
-
# from @smarie which are, as of yet, not part of nixpkgs. Also introduces
20
20
-
# a tricky dependency: makefun tests depend on pytest-cases, installing
21
21
-
# pytest-cases depends on makefun.
22
22
-
doCheck = false;
22
22
+
nativeBuildInputs = [
23
23
+
setuptools-scm
24
24
+
];
25
25
+
26
26
+
checkInputs = [
27
27
+
pytestCheckHook
28
28
+
];
23
29
24
30
pythonImportsCheck = [ "makefun" ];
25
31