2018-01-17 10:46:27 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, setuptools_scm, pytest }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-runner";
|
2018-04-04 19:16:01 +01:00
|
|
|
version = "4.2";
|
2018-01-17 10:46:27 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-04-04 19:16:01 +01:00
|
|
|
sha256 = "d23f117be39919f00dd91bffeb4f15e031ec797501b717a245e377aee0f577be";
|
2018-01-17 10:46:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ setuptools_scm pytest ];
|
|
|
|
|
2018-08-30 16:56:34 +01:00
|
|
|
postPatch = ''
|
|
|
|
rm pytest.ini
|
|
|
|
'';
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test tests
|
|
|
|
'';
|
|
|
|
|
|
|
|
# Fixture not found
|
|
|
|
doCheck = false;
|
|
|
|
|
2018-01-17 10:46:27 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Invoke py.test as distutils command with dependency resolution";
|
|
|
|
homepage = https://bitbucket.org/pytest-dev/pytest-runner;
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|