Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09-beta 40 lines 790 B view raw
1{ stdenv 2, buildPythonPackage 3, fetchPypi 4, pytest 5, six 6, decorator 7}: 8 9buildPythonPackage rec { 10 version = "1.1.5"; 11 pname = "pytest-relaxed"; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "e39a7e5b14e14dfff0de0ad720dfffa740c128d599ab14cfac13f4deb34164a6"; 16 }; 17 18 buildInputs = [ pytest ]; 19 checkInputs = [ pytest ]; 20 21 propagatedBuildInputs = [ six decorator ]; 22 23 patchPhase = '' 24 sed -i "s/pytest>=3,<5/pytest/g" setup.py 25 ''; 26 27 # skip tests due to dir requirements 28 doCheck = false; 29 30 checkPhase = '' 31 pytest tests 32 ''; 33 34 meta = with stdenv.lib; { 35 homepage = "https://pytest-relaxed.readthedocs.io/"; 36 description = "Relaxed test discovery/organization for pytest"; 37 license = licenses.bsd0; 38 maintainers = [ maintainers.costrouc ]; 39 }; 40}