2021-06-03 10:09:11 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, setuptools-scm, pytest }:
|
2018-01-17 10:46:27 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-runner";
|
2021-03-24 09:28:25 +00:00
|
|
|
version = "5.3.0";
|
2018-01-17 10:46:27 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-24 09:28:25 +00:00
|
|
|
sha256 = "ca3f58ff4957e8be6c54c55d575b235725cbbcf4dc0d5091c29c6444cfc8a5fe";
|
2018-01-17 10:46:27 +00:00
|
|
|
};
|
|
|
|
|
2021-06-03 10:09:11 +00:00
|
|
|
nativeBuildInputs = [ setuptools-scm pytest ];
|
2018-01-17 10:46:27 +00:00
|
|
|
|
2018-08-30 15:56:34 +00:00
|
|
|
postPatch = ''
|
|
|
|
rm pytest.ini
|
|
|
|
'';
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test tests
|
|
|
|
'';
|
|
|
|
|
|
|
|
# Fixture not found
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-01-17 10:46:27 +00:00
|
|
|
description = "Invoke py.test as distutils command with dependency resolution";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/pytest-dev/pytest-runner";
|
2018-01-17 10:46:27 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|