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