Files
nixpkgs/pkgs/development/python-modules/pytestrunner/default.nix
T

31 lines
658 B
Nix
Raw Normal View History

2018-01-17 11:46:27 +01:00
{ stdenv, buildPythonPackage, fetchPypi, setuptools_scm, pytest }:
buildPythonPackage rec {
pname = "pytest-runner";
2018-04-04 20:16:01 +02:00
version = "4.2";
2018-01-17 11:46:27 +01:00
src = fetchPypi {
inherit pname version;
2018-04-04 20:16:01 +02:00
sha256 = "d23f117be39919f00dd91bffeb4f15e031ec797501b717a245e377aee0f577be";
2018-01-17 11:46:27 +01:00
};
2019-01-05 11:54:27 +01:00
nativeBuildInputs = [ setuptools_scm pytest ];
2018-01-17 11:46:27 +01:00
postPatch = ''
rm pytest.ini
'';
checkPhase = ''
py.test tests
'';
# Fixture not found
doCheck = false;
2018-01-17 11:46:27 +01:00
meta = with stdenv.lib; {
description = "Invoke py.test as distutils command with dependency resolution";
homepage = https://github.com/pytest-dev/pytest-runner;
2018-01-17 11:46:27 +01:00
license = licenses.mit;
};
}