From d8def3a0abbfcb343afb8efe2fdf1786331ab4b8 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 2 Jun 2021 23:31:50 +0200 Subject: [PATCH] python2Packages.werkzeug: reinit at 1.0.1 --- .../development/python-modules/werkzeug/1.nix | 30 +++++++++++++++++++ pkgs/top-level/python2-packages.nix | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 pkgs/development/python-modules/werkzeug/1.nix diff --git a/pkgs/development/python-modules/werkzeug/1.nix b/pkgs/development/python-modules/werkzeug/1.nix new file mode 100644 index 000000000000..73bebd8366ec --- /dev/null +++ b/pkgs/development/python-modules/werkzeug/1.nix @@ -0,0 +1,30 @@ +{ lib, stdenv, buildPythonPackage, fetchPypi +, itsdangerous, hypothesis +, pytestCheckHook, requests +, pytest-timeout +, isPy3k + }: + +buildPythonPackage rec { + pname = "Werkzeug"; + version = "1.0.1"; + + src = fetchPypi { + inherit pname version; + sha256 = "6c80b1e5ad3665290ea39320b91e1be1e0d5f60652b964a3070216de83d2e47c"; + }; + + propagatedBuildInputs = [ itsdangerous ]; + checkInputs = [ pytestCheckHook requests hypothesis pytest-timeout ]; + + disabledTests = lib.optionals stdenv.isDarwin [ + "test_get_machine_id" + ]; + + meta = with lib; { + homepage = "https://palletsprojects.com/p/werkzeug/"; + description = "A WSGI utility library for Python"; + license = licenses.bsd3; + maintainers = [ ]; + }; +} diff --git a/pkgs/top-level/python2-packages.nix b/pkgs/top-level/python2-packages.nix index 8b4a752e875a..f013140ce02c 100644 --- a/pkgs/top-level/python2-packages.nix +++ b/pkgs/top-level/python2-packages.nix @@ -630,6 +630,8 @@ with self; with super; { wptserve = callPackage ../development/python-modules/wptserve { }; + werkzeug = callPackage ../development/python-modules/werkzeug/1.nix { }; + WSGIProxy = callPackage ../development/python-modules/wsgiproxy { }; wxPython30 = callPackage ../development/python-modules/wxPython/3.0.nix {