python3Packages.makefun: fix build, enable tests
This commit is contained in:
parent
b26556aedf
commit
f0af08faff
1 changed files with 12 additions and 6 deletions
|
@ -2,6 +2,7 @@
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, setuptools-scm
|
, setuptools-scm
|
||||||
|
, pytestCheckHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
|
@ -13,13 +14,18 @@ buildPythonPackage rec {
|
||||||
sha256 = "4d0e90ca3fdbdeb6a4a0891e2da7d4b8e80386e19e6db91ce29b8aa5c876ecfe";
|
sha256 = "4d0e90ca3fdbdeb6a4a0891e2da7d4b8e80386e19e6db91ce29b8aa5c876ecfe";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ setuptools-scm ];
|
postPatch = ''
|
||||||
|
substituteInPlace setup.cfg \
|
||||||
|
--replace "pytest-runner" ""
|
||||||
|
'';
|
||||||
|
|
||||||
# Disabling tests for now due to various (transitive) dependencies on modules
|
nativeBuildInputs = [
|
||||||
# from @smarie which are, as of yet, not part of nixpkgs. Also introduces
|
setuptools-scm
|
||||||
# a tricky dependency: makefun tests depend on pytest-cases, installing
|
];
|
||||||
# pytest-cases depends on makefun.
|
|
||||||
doCheck = false;
|
checkInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [ "makefun" ];
|
pythonImportsCheck = [ "makefun" ];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue