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
|
|
|
name = "${pname}-${version}";
|
|
|
|
pname = "Flask-Testing";
|
|
|
|
version = "0.6.2";
|
2017-01-13 23:13:45 +00:00
|
|
|
|
2017-08-28 22:20:01 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "1w0dpwvrcpffm8ychyxpm8s5blm7slik9kplh9jb3sgwcv9gyppj";
|
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.";
|
|
|
|
homepage = https://pythonhosted.org/Flask-Testing/;
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.mic92 ];
|
|
|
|
};
|
|
|
|
}
|