nixpkgs/pkgs/development/python-modules/pytest-runner/default.nix
Martin Weinelt 0215034f25 python3.pkgs: Migrate fetchers to use hash
when they already rely on SRI hashes.
2023-03-03 23:59:29 +01:00

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;
};
}