2017-09-05 09:16:41 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi
|
2017-12-30 11:28:33 +00:00
|
|
|
, itsdangerous, hypothesis
|
2017-09-05 09:16:41 +00:00
|
|
|
, pytest, requests, glibcLocales }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "Werkzeug";
|
2019-04-16 17:15:42 +00:00
|
|
|
version = "0.15.2";
|
2017-09-05 09:16:41 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-04-16 17:15:42 +00:00
|
|
|
sha256 = "0a73e8bb2ff2feecfc5d56e6f458f5b99290ef34f565ffb2665801ff7de6af7a";
|
2017-09-05 09:16:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ itsdangerous ];
|
2019-03-23 16:08:01 +00:00
|
|
|
checkInputs = [ pytest requests hypothesis ];
|
2017-12-30 11:28:33 +00:00
|
|
|
|
2019-02-10 22:44:42 +00:00
|
|
|
# Hi! New version of Werkzeug? Please double-check that this commit is
|
|
|
|
# inclucded, and then remove the following patch.
|
|
|
|
# https://github.com/pallets/werkzeug/commit/1cfdcf9824cb20e362979e8f7734012926492165
|
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace "tests/test_serving.py" --replace "'python'" "sys.executable"
|
|
|
|
'';
|
|
|
|
|
2017-12-30 11:28:33 +00:00
|
|
|
checkPhase = ''
|
2019-03-23 16:08:01 +00:00
|
|
|
pytest ${stdenv.lib.optionalString stdenv.isDarwin "-k 'not test_get_machine_id'"}
|
2017-12-30 11:28:33 +00:00
|
|
|
'';
|
2017-09-05 09:16:41 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://werkzeug.pocoo.org/;
|
|
|
|
description = "A WSGI utility library for Python";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|