2017-09-05 10:16:41 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi
|
2017-12-30 11:28:33 +00:00
|
|
|
, itsdangerous, hypothesis
|
2020-02-06 15:03:25 +00:00
|
|
|
, pytest, requests
|
|
|
|
, pytest-timeout
|
|
|
|
}:
|
2017-09-05 10:16:41 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "Werkzeug";
|
2020-02-06 15:03:25 +00:00
|
|
|
version = "0.16.1";
|
2017-09-05 10:16:41 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-02-06 15:03:25 +00:00
|
|
|
sha256 = "b353856d37dec59d6511359f97f6a4b2468442e454bd1c98298ddce53cac1f04";
|
2017-09-05 10:16:41 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ itsdangerous ];
|
2020-02-06 15:03:25 +00:00
|
|
|
checkInputs = [ pytest requests hypothesis pytest-timeout ];
|
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 10:16:41 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2019-05-25 02:07:00 +01:00
|
|
|
homepage = "https://palletsprojects.com/p/werkzeug/";
|
2017-09-05 10:16:41 +01:00
|
|
|
description = "A WSGI utility library for Python";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|