From 9b65bc9649616d06a1dc32075807fd73ff26525c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Mon, 28 Aug 2017 22:20:01 +0100 Subject: [PATCH] python.pkgs.Flask-Testing: 0.6.1 -> 0.6.2 Progress on: #28643 --- .../development/python-modules/flask-testing.nix | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/flask-testing.nix b/pkgs/development/python-modules/flask-testing.nix index c5fe8f8bdbee..178e000a32ed 100644 --- a/pkgs/development/python-modules/flask-testing.nix +++ b/pkgs/development/python-modules/flask-testing.nix @@ -1,16 +1,22 @@ -{ stdenv, fetchurl, buildPythonPackage, pythonOlder +{ stdenv, fetchPypi, buildPythonPackage, pythonOlder , flask, blinker, twill }: with stdenv.lib; buildPythonPackage rec { - name = "Flask-Testing-0.6.1"; + name = "${pname}-${version}"; + pname = "Flask-Testing"; + version = "0.6.2"; - src = fetchurl { - url = "mirror://pypi/F/Flask-Testing/${name}.tar.gz"; - sha256 = "1ckmy7kz2qkggdlm9y5wx6gvd2x7qv921dyb059ywfh15hrkkxdb"; + src = fetchPypi { + inherit pname version; + sha256 = "1w0dpwvrcpffm8ychyxpm8s5blm7slik9kplh9jb3sgwcv9gyppj"; }; + postPatch = '' + sed -i -e 's/twill==0.9.1/twill/' setup.py + ''; + buildInputs = optionals (pythonOlder "3.0") [ twill ]; propagatedBuildInputs = [ flask blinker ];