fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
40 lines
682 B
Nix
40 lines
682 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
setuptools-scm,
|
|
pytest,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pytest-runner";
|
|
version = "6.0.1";
|
|
format = "pyproject";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-cNRzlYWnAI83v0kzwBP9sye4h4paafy7MxbIiILw9Js=";
|
|
};
|
|
|
|
postPatch = ''
|
|
rm pytest.ini
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
setuptools-scm
|
|
pytest
|
|
];
|
|
|
|
checkPhase = ''
|
|
py.test tests
|
|
'';
|
|
|
|
# Fixture not found
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Invoke py.test as distutils command with dependency resolution";
|
|
homepage = "https://github.com/pytest-dev/pytest-runner";
|
|
license = licenses.mit;
|
|
};
|
|
}
|