Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchPypi 4, testtools 5}: 6 7buildPythonPackage rec { 8 pname = "testscenarios"; 9 version = "0.5.0"; 10 11 src = fetchPypi { 12 inherit pname version; 13 sha256 = "c257cb6b90ea7e6f8fef3158121d430543412c9a87df30b5dde6ec8b9b57a2b6"; 14 }; 15 16 postPatch = '' 17 substituteInPlace setup.cfg \ 18 --replace "buffer = 1" "" \ 19 --replace "catch = 1" "" 20 ''; 21 22 propagatedBuildInputs = [ testtools ]; 23 24 meta = with lib; { 25 description = "A pyunit extension for dependency injection"; 26 homepage = "https://pypi.python.org/pypi/testscenarios"; 27 license = licenses.asl20; 28 }; 29 30}