pythonPackages.pytest-relaxed: init at 1.1.4

This commit is contained in:
Chris Ostrouchov 2018-10-10 14:26:26 -04:00 committed by Frederik Rietdijk
parent 6f5142e48e
commit e8c6b66e75
2 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,37 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, pytest
, six
, decorator
}:
buildPythonPackage rec {
version = "1.1.4";
pname = "pytest-relaxed";
src = fetchPypi {
inherit pname version;
sha256 = "511ac473252baa67d5451f7864516e2e8f1acedf0cef71f79d2ed916ee04e146";
};
propagatedBuildInputs = [ pytest six decorator ];
patchPhase = ''
sed -i "s/pytest>=3,<3.3/pytest/g" setup.py
'';
# skip tests due to dir requirements
doCheck = false;
checkPhase = ''
pytest tests
'';
meta = with stdenv.lib; {
homepage = https://pytest-relaxed.readthedocs.io/;
description = "Relaxed test discovery/organization for pytest";
license = licenses.bsd0;
maintainers = [ maintainers.costrouc ];
};
}

View File

@ -1937,6 +1937,8 @@ in {
pytest-rerunfailures = callPackage ../development/python-modules/pytest-rerunfailures { };
pytest-relaxed = callPackage ../development/python-modules/pytest-relaxed { };
pytest-flake8 = callPackage ../development/python-modules/pytest-flake8 { };
pytestflakes = callPackage ../development/python-modules/pytest-flakes { };