diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2019-05-24 20:04:00 -0500 |
---|---|---|
committer | Frederik Rietdijk <freddyrietdijk@fridh.nl> | 2019-06-18 11:11:16 +0200 |
commit | 50ccd6b32d60464ba963d3e28b9d1d2ade76ca21 (patch) | |
tree | a5c1fc0f18174181eb2108e70cd0dd58998d8c67 /pkgs | |
parent | 16aea3da6a503dde61730642e0d6abe50cd4e8a5 (diff) | |
download | nixlib-50ccd6b32d60464ba963d3e28b9d1d2ade76ca21.tar nixlib-50ccd6b32d60464ba963d3e28b9d1d2ade76ca21.tar.gz nixlib-50ccd6b32d60464ba963d3e28b9d1d2ade76ca21.tar.bz2 nixlib-50ccd6b32d60464ba963d3e28b9d1d2ade76ca21.tar.lz nixlib-50ccd6b32d60464ba963d3e28b9d1d2ade76ca21.tar.xz nixlib-50ccd6b32d60464ba963d3e28b9d1d2ade76ca21.tar.zst nixlib-50ccd6b32d60464ba963d3e28b9d1d2ade76ca21.zip |
pythonPackages.apipkg: fix pytest 4 support
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/python-modules/apipkg/default.nix | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/pkgs/development/python-modules/apipkg/default.nix b/pkgs/development/python-modules/apipkg/default.nix index bd535a972d15..a2a026e74d5b 100644 --- a/pkgs/development/python-modules/apipkg/default.nix +++ b/pkgs/development/python-modules/apipkg/default.nix @@ -1,5 +1,5 @@ { stdenv, buildPythonPackage, fetchPypi -, pytest_3, setuptools_scm }: +, pytest, setuptools_scm }: buildPythonPackage rec { pname = "apipkg"; @@ -11,7 +11,13 @@ buildPythonPackage rec { }; nativeBuildInputs = [ setuptools_scm ]; - checkInputs = [ pytest_3 ]; + checkInputs = [ pytest ]; + + # Fix pytest 4 support. See: https://github.com/pytest-dev/apipkg/issues/14 + postPatch = '' + substituteInPlace "test_apipkg.py" \ + --replace "py.test.ensuretemp('test_apipkg')" "py.path.local('test_apipkg')" + ''; checkPhase = '' py.test @@ -19,7 +25,7 @@ buildPythonPackage rec { meta = with stdenv.lib; { description = "Namespace control and lazy-import mechanism"; - homepage = https://bitbucket.org/hpk42/apipkg; + homepage = "https://github.com/pytest-dev/apipkg"; license = licenses.mit; }; } |