2017-08-28 23:20:01 +02:00
|
|
|
{ stdenv, fetchPypi, buildPythonPackage, pythonOlder
|
2017-01-14 00:13:45 +01:00
|
|
|
, flask, blinker, twill }:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2017-08-28 23:20:01 +02:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
pname = "Flask-Testing";
|
2017-12-30 12:22:55 +01:00
|
|
|
version = "0.7.1";
|
2017-01-14 00:13:45 +01:00
|
|
|
|
2017-08-28 23:20:01 +02:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2017-12-30 12:22:55 +01:00
|
|
|
sha256 = "dc076623d7d850653a018cb64f500948334c8aeb6b10a5a842bf1bcfb98122bc";
|
2017-01-14 00:13:45 +01:00
|
|
|
};
|
|
|
|
|
2017-08-28 23:20:01 +02:00
|
|
|
postPatch = ''
|
|
|
|
sed -i -e 's/twill==0.9.1/twill/' setup.py
|
|
|
|
'';
|
|
|
|
|
2017-01-14 00:13:45 +01:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|