pythonPackages.pyristent: add pytestrunner, fix build
This commit is contained in:
parent
33f486f456
commit
0756066b1b
@ -4,6 +4,7 @@
|
|||||||
, six
|
, six
|
||||||
, pytest
|
, pytest
|
||||||
, hypothesis
|
, hypothesis
|
||||||
|
, pytestrunner
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
@ -16,11 +17,11 @@ buildPythonPackage rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ six ];
|
propagatedBuildInputs = [ six ];
|
||||||
buildInputs = [ pytest hypothesis ];
|
|
||||||
|
|
||||||
checkPhase = ''
|
checkInputs = [ pytestrunner pytest hypothesis ];
|
||||||
py.test
|
|
||||||
'';
|
# pytestrunner is only needed to run tests
|
||||||
|
patches = [ ./no-setup-requires-pytestrunner.patch ];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = https://github.com/tobgu/pyrsistent/;
|
homepage = https://github.com/tobgu/pyrsistent/;
|
||||||
|
@ -0,0 +1,15 @@
|
|||||||
|
diff --git a/setup.py b/setup.py
|
||||||
|
index 90a39a5..7bf444f 100644
|
||||||
|
--- a/setup.py
|
||||||
|
+++ b/setup.py
|
||||||
|
@@ -77,9 +77,8 @@ setup(
|
||||||
|
'Programming Language :: Python :: Implementation :: PyPy',
|
||||||
|
],
|
||||||
|
test_suite='tests',
|
||||||
|
- tests_require=['pytest','hypothesis'],
|
||||||
|
+ tests_require=['pytest-runner', 'pytest','hypothesis'],
|
||||||
|
scripts=[],
|
||||||
|
- setup_requires=['pytest-runner'],
|
||||||
|
ext_modules=extensions,
|
||||||
|
cmdclass={'build_ext': custom_build_ext},
|
||||||
|
install_requires=['six'],
|
Loading…
x
Reference in New Issue
Block a user