nixpkgs/pkgs/development/python-modules/flask-testing/default.nix
Frederik Rietdijk ced21f5e1a pythonPackages: remove name attribute`
The `buildPython*` function computes name from `pname` and `version`.
This change removes `name` attribute from all expressions in
`pkgs/development/python-modules`.

While at it, some other minor changes were made as well, such as
replacing `fetchurl` calls with `fetchPypi`.
2018-06-23 18:14:26 +02:00

28 lines
674 B
Nix

{ stdenv, fetchPypi, buildPythonPackage, pythonOlder
, flask, blinker, twill }:
with stdenv.lib;
buildPythonPackage rec {
pname = "Flask-Testing";
version = "0.7.1";
src = fetchPypi {
inherit pname version;
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 ];
};
}