mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-19 02:44:17 +03:00
pythonPackages.apipkg: fix pytest 4 support
This commit is contained in:
parent
16aea3da6a
commit
50ccd6b32d
@ -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;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user