Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ buildPythonPackage, fetchPypi, fetchpatch 2, plaster, PasteDeploy 3, pytest, pytestcov 4}: 5 6buildPythonPackage rec { 7 pname = "plaster_pastedeploy"; 8 version = "0.6"; 9 10 src = fetchPypi { 11 inherit pname version; 12 sha256 = "c231130cb86ae414084008fe1d1797db7e61dc5eaafb5e755de21387c27c6fae"; 13 }; 14 15 patches = [ 16 # Fix tests compatibility with PasteDeploy 2+ 17 # https://github.com/Pylons/plaster_pastedeploy/pull/17 18 (fetchpatch { 19 url = https://github.com/Pylons/plaster_pastedeploy/commit/d77d81a57e917c67a20332beca8f418651172905.patch; 20 sha256 = "0n5vnqn8kad41kn9grcwiic6c6rhvy1ji3w81s2v9xyk0bd9yryf"; 21 }) 22 ]; 23 24 checkPhase = '' 25 py.test 26 ''; 27 28 propagatedBuildInputs = [ plaster PasteDeploy ]; 29 checkInputs = [ pytest pytestcov ]; 30}