mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
31 lines
652 B
Nix
31 lines
652 B
Nix
{ lib, buildPythonPackage, fetchPypi, setuptools-scm, pytest }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pytest-runner";
|
|
version = "5.3.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "ca3f58ff4957e8be6c54c55d575b235725cbbcf4dc0d5091c29c6444cfc8a5fe";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools-scm pytest ];
|
|
|
|
postPatch = ''
|
|
rm pytest.ini
|
|
'';
|
|
|
|
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;
|
|
};
|
|
}
|