From 5da2caab634d052f44933a9dbf47a41d7c4c14d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sat, 14 Jan 2017 00:13:45 +0100 Subject: [PATCH] pythonPackages.flask_testing: init at 0.6.1 --- .../python-modules/flask-testing.nix | 23 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 25 insertions(+) create mode 100644 pkgs/development/python-modules/flask-testing.nix diff --git a/pkgs/development/python-modules/flask-testing.nix b/pkgs/development/python-modules/flask-testing.nix new file mode 100644 index 00000000000..c5fe8f8bdbe --- /dev/null +++ b/pkgs/development/python-modules/flask-testing.nix @@ -0,0 +1,23 @@ +{ stdenv, fetchurl, buildPythonPackage, pythonOlder +, flask, blinker, twill }: + +with stdenv.lib; + +buildPythonPackage rec { + name = "Flask-Testing-0.6.1"; + + src = fetchurl { + url = "mirror://pypi/F/Flask-Testing/${name}.tar.gz"; + sha256 = "1ckmy7kz2qkggdlm9y5wx6gvd2x7qv921dyb059ywfh15hrkkxdb"; + }; + + buildInputs = optionals (pythonOlder "3.0") [ twill ]; + propagatedBuildInputs = [ flask blinker ]; + + meta = { + description = "Flask unittest integration."; + homepage = https://pythonhosted.org/Flask-Testing/; + license = licenses.bsd3; + maintainers = [ maintainers.mic92 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index b400c5a41a5..62294be8b35 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -11430,6 +11430,8 @@ in { }; }; + flask_testing = callPackage ../development/python-modules/flask-testing.nix { }; + wtforms = buildPythonPackage rec { version = "2.1"; name = "wtforms-${version}";