1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-11 15:15:36 +00:00
nixpkgs/pkgs/development/python-modules/flask-testing/default.nix

30 lines
706 B
Nix
Raw Normal View History

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