mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 15:13:46 +00:00
0215034f25
when they already rely on SRI hashes.
40 lines
675 B
Nix
40 lines
675 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, setuptools-scm
|
|
, pytest
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pytest-runner";
|
|
version = "6.0.0";
|
|
format = "pyproject";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-tNhTYu0ptMNIZ43nl99Djw8FCUl924xkcJbAKm2HtoU=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|