git.iko.soy/typeable/nixpkgs
on master help sign in
pythonPackages.pyristent: add pytestrunner, fix build
commit0756066b1b5d9d4d7a4da2fcc157a07ef4bc3c6d authorworldofpeace <worldofpeace@users.noreply.github.com> dateTue 8 Jan 2019, 00:02 (8 years ago) parent33f486f
2 files changed+20−4
pkgs/development/python-modules/pyrsistent/default.nix+5−4 pkgs/development/python-modules/pyrsistent/no-setup-requires-pytestrunner.patch+15
pkgs/development/python-modules/pyrsistent/default.nix+5−4
@@ -4,6 +4,7 @@
44, six
55, pytest
66, hypothesis
7+, pytestrunner
78}:
89
910buildPythonPackage rec {
@@ -16,11 +17,11 @@ buildPythonPackage rec {
1617 };
1718
1819 propagatedBuildInputs = [ six ];
19− buildInputs = [ pytest hypothesis ];
2020
21− checkPhase = ''
22− py.test
23− '';
21+ checkInputs = [ pytestrunner pytest hypothesis ];
22+
23+ # pytestrunner is only needed to run tests
24+ patches = [ ./no-setup-requires-pytestrunner.patch ];
2425
2526 meta = with stdenv.lib; {
2627 homepage = https://github.com/tobgu/pyrsistent/;
pkgs/development/python-modules/pyrsistent/no-setup-requires-pytestrunner.patchnew file+15
@@ -0,0 +1,15 @@
1+diff --git a/setup.py b/setup.py
2+index 90a39a5..7bf444f 100644
3+--- a/setup.py
4++++ b/setup.py
5+@@ -77,9 +77,8 @@ setup(
6+ 'Programming Language :: Python :: Implementation :: PyPy',
7+ ],
8+ test_suite='tests',
9+- tests_require=['pytest','hypothesis'],
10++ tests_require=['pytest-runner', 'pytest','hypothesis'],
11+ scripts=[],
12+- setup_requires=['pytest-runner'],
13+ ext_modules=extensions,
14+ cmdclass={'build_ext': custom_build_ext},
15+ install_requires=['six'],