nixpkgs-suyu/pkgs/development/python-modules/pytest-runner/default.nix
2022-03-14 00:28:59 +01:00

39 lines
677 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, setuptools-scm
, pytest
}:
buildPythonPackage rec {
pname = "pytest-runner";
version = "6.0.0";
format = "pyproject";
src = fetchPypi {
inherit pname version;
sha256 = "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;
};
}