mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 02:33:25 +00:00
ced21f5e1a
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`.
29 lines
671 B
Nix
29 lines
671 B
Nix
{ stdenv, buildPythonPackage, fetchPypi
|
|
, itsdangerous, click, werkzeug, jinja2, pytest }:
|
|
|
|
buildPythonPackage rec {
|
|
version = "1.0.2";
|
|
pname = "Flask";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "2271c0070dbcb5275fad4a82e29f23ab92682dc45f9dfbc22c02ba9b9322ce48";
|
|
};
|
|
|
|
checkInputs = [ pytest ];
|
|
propagatedBuildInputs = [ itsdangerous click werkzeug jinja2 ];
|
|
|
|
checkPhase = ''
|
|
py.test
|
|
'';
|
|
|
|
# Tests require extra dependencies
|
|
doCheck = false;
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = http://flask.pocoo.org/;
|
|
description = "A microframework based on Werkzeug, Jinja 2, and good intentions";
|
|
license = licenses.bsd3;
|
|
};
|
|
}
|