2017-08-28 22:20:01 +01:00
|
|
|
{ stdenv, fetchPypi, buildPythonPackage, pythonOlder
|
2017-01-13 23:13:45 +00:00
|
|
|
, flask, blinker, twill }:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2017-08-28 22:20:01 +01:00
|
|
|
pname = "Flask-Testing";
|
2020-03-15 19:29:29 +00:00
|
|
|
version = "0.8.0";
|
2017-01-13 23:13:45 +00:00
|
|
|
|
2017-08-28 22:20:01 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-03-15 19:29:29 +00:00
|
|
|
sha256 = "1rkkqgmrzmhpv6y1xysqh0ij03xniic8h631yvghksqwxd9vyjfq";
|
2017-01-13 23:13:45 +00:00
|
|
|
};
|
|
|
|
|
2017-08-28 22:20:01 +01:00
|
|
|
postPatch = ''
|
|
|
|
sed -i -e 's/twill==0.9.1/twill/' setup.py
|
|
|
|
'';
|
|
|
|
|
2017-01-13 23:13:45 +00:00
|
|
|
buildInputs = optionals (pythonOlder "3.0") [ twill ];
|
|
|
|
propagatedBuildInputs = [ flask blinker ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Flask unittest integration.";
|
2020-03-15 19:29:29 +00:00
|
|
|
homepage = "https://pythonhosted.org/Flask-Testing/";
|
2017-01-13 23:13:45 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.mic92 ];
|
|
|
|
};
|
|
|
|
}
|