Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv, buildPythonPackage, fetchPypi
2, itsdangerous, hypothesis
3, pytestCheckHook, requests
4, pytest-timeout
5, isPy3k
6 }:
7
8buildPythonPackage rec {
9 pname = "Werkzeug";
10 version = "1.0.1";
11
12 src = fetchPypi {
13 inherit pname version;
14 sha256 = "6c80b1e5ad3665290ea39320b91e1be1e0d5f60652b964a3070216de83d2e47c";
15 };
16
17 propagatedBuildInputs = [ itsdangerous ];
18 checkInputs = [ pytestCheckHook requests hypothesis pytest-timeout ];
19
20 disabledTests = stdenv.lib.optionals stdenv.isDarwin [
21 "test_get_machine_id"
22 ];
23
24 # Python 2 pytest fails with INTERNALERROR due to a deprecation warning.
25 doCheck = isPy3k;
26
27 meta = with stdenv.lib; {
28 homepage = "https://palletsprojects.com/p/werkzeug/";
29 description = "A WSGI utility library for Python";
30 license = licenses.bsd3;
31 };
32}