1{ stdenv, buildPythonPackage, fetchPypi
2, itsdangerous, hypothesis
3, pytest, requests }:
4
5buildPythonPackage rec {
6 pname = "Werkzeug";
7 version = "0.15.5";
8
9 src = fetchPypi {
10 inherit pname version;
11 sha256 = "a13b74dd3c45f758d4ebdb224be8f1ab8ef58b3c0ffc1783a8c7d9f4f50227e6";
12 };
13
14 propagatedBuildInputs = [ itsdangerous ];
15 checkInputs = [ pytest requests hypothesis ];
16
17 checkPhase = ''
18 pytest ${stdenv.lib.optionalString stdenv.isDarwin "-k 'not test_get_machine_id'"}
19 '';
20
21 meta = with stdenv.lib; {
22 homepage = "https://palletsprojects.com/p/werkzeug/";
23 description = "A WSGI utility library for Python";
24 license = licenses.bsd3;
25 };
26}