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