2019-02-20 17:12:01 +00:00
|
|
|
{ buildPythonPackage, fetchPypi, fetchpatch
|
2017-09-25 12:39:07 +01:00
|
|
|
, plaster, PasteDeploy
|
|
|
|
, pytest, pytestcov
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "plaster_pastedeploy";
|
2018-07-22 11:15:48 +01:00
|
|
|
version = "0.6";
|
2017-09-25 12:39:07 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-07-22 11:15:48 +01:00
|
|
|
sha256 = "c231130cb86ae414084008fe1d1797db7e61dc5eaafb5e755de21387c27c6fae";
|
2017-09-25 12:39:07 +01:00
|
|
|
};
|
|
|
|
|
2019-02-20 17:12:01 +00:00
|
|
|
patches = [
|
|
|
|
# Fix tests compatibility with PasteDeploy 2+
|
|
|
|
# https://github.com/Pylons/plaster_pastedeploy/pull/17
|
|
|
|
(fetchpatch {
|
|
|
|
url = https://github.com/Pylons/plaster_pastedeploy/commit/d77d81a57e917c67a20332beca8f418651172905.patch;
|
|
|
|
sha256 = "0n5vnqn8kad41kn9grcwiic6c6rhvy1ji3w81s2v9xyk0bd9yryf";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2017-09-25 12:39:07 +01:00
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ plaster PasteDeploy ];
|
|
|
|
checkInputs = [ pytest pytestcov ];
|
|
|
|
}
|