mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +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
786 B
Nix
29 lines
786 B
Nix
{ stdenv, buildPythonPackage, fetchPypi, isPy3k
|
|
, nose, mock, blinker
|
|
, flask, six, pytz, aniso8601, pycrypto
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "Flask-RESTful";
|
|
version = "0.3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "01rlvl2iq074ciyn4schmjip7cyplkwkysbb8f610zil06am35ap";
|
|
};
|
|
|
|
# TypeError: Only byte strings can be passed to C code
|
|
patchPhase = if isPy3k then ''
|
|
rm tests/test_crypto.py tests/test_paging.py
|
|
'' else null;
|
|
buildInputs = [ nose mock blinker ];
|
|
propagatedBuildInputs = [ flask six pytz aniso8601 pycrypto ];
|
|
PYTHON_EGG_CACHE = "`pwd`/.egg-cache";
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = "http://flask-restful.readthedocs.io/";
|
|
description = "REST API building blocks for Flask";
|
|
license = licenses.bsd3;
|
|
};
|
|
}
|