2018-01-17 10:46:27 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, setuptools_scm, pytest }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-runner";
|
2019-10-24 07:47:45 +01:00
|
|
|
version = "5.1";
|
2018-01-17 10:46:27 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-24 07:47:45 +01:00
|
|
|
sha256 = "25a013c8d84f0ca60bb01bd11913a3bcab420f601f0f236de4423074af656e7a";
|
2018-01-17 10:46:27 +00:00
|
|
|
};
|
|
|
|
|
2019-01-05 10:54:27 +00:00
|
|
|
nativeBuildInputs = [ setuptools_scm pytest ];
|
2018-01-17 10:46:27 +00:00
|
|
|
|
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";
|
2019-01-14 23:17:09 +00:00
|
|
|
homepage = https://github.com/pytest-dev/pytest-runner;
|
2018-01-17 10:46:27 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|