2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, setuptools_scm, pytest }:
|
2018-01-17 10:46:27 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-runner";
|
2019-12-19 19:31:20 +00:00
|
|
|
version = "5.2";
|
2018-01-17 10:46:27 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-12-19 19:31:20 +00:00
|
|
|
sha256 = "96c7e73ead7b93e388c5d614770d2bae6526efd997757d3543fe17b557a0942b";
|
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;
|
|
|
|
|
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 02:11:51 +01:00
|
|
|
homepage = "https://github.com/pytest-dev/pytest-runner";
|
2018-01-17 10:46:27 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|