2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, buildPythonPackage, fetchPypi, setuptools_scm, pytest }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-runner";
|
|
|
|
version = "5.2";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "96c7e73ead7b93e388c5d614770d2bae6526efd997757d3543fe17b557a0942b";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ setuptools_scm pytest ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
rm pytest.ini
|
|
|
|
'';
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test tests
|
|
|
|
'';
|
|
|
|
|
|
|
|
# Fixture not found
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Invoke py.test as distutils command with dependency resolution";
|
|
|
|
homepage = "https://github.com/pytest-dev/pytest-runner";
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|