mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-14 15:36:47 +03:00
python.pkgs.flask-restful: 0.3.5 -> 0.3.6
This commit is contained in:
parent
99ed36e590
commit
bfabc3a78c
29
pkgs/development/python-modules/flask-restful/default.nix
Normal file
29
pkgs/development/python-modules/flask-restful/default.nix
Normal file
@ -0,0 +1,29 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi, isPy3k
|
||||
, nose, mock, blinker
|
||||
, flask, six, pytz, aniso8601, pycrypto
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
name = "${pname}-${version}";
|
||||
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;
|
||||
};
|
||||
}
|
@ -9671,29 +9671,7 @@ in {
|
||||
|
||||
flask-pymongo = callPackage ../development/python-modules/Flask-PyMongo { };
|
||||
|
||||
flask-restful = buildPythonPackage rec {
|
||||
name = "Flask-RESTful-${version}";
|
||||
version = "0.3.5";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "mirror://pypi/F/Flask-RESTful/${name}.tar.gz";
|
||||
sha256 = "cce4aeff959b571136b5af098bebe7d3deeca7eb1411c4e722ff2c5356ab4c42";
|
||||
};
|
||||
|
||||
# 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 = with self; [ nose mock blinker ];
|
||||
propagatedBuildInputs = with self; [ flask six pytz aniso8601 pycrypto ];
|
||||
PYTHON_EGG_CACHE = "`pwd`/.egg-cache";
|
||||
|
||||
meta = {
|
||||
homepage = "http://flask-restful.readthedocs.io/";
|
||||
description = "REST API building blocks for Flask";
|
||||
license = licenses.bsd3;
|
||||
};
|
||||
};
|
||||
flask-restful = callPackage ../development/python-modules/flask-restful { };
|
||||
|
||||
flask-restplus = callPackage ../development/python-modules/flask-restplus/default.nix { };
|
||||
# Exactly 0.8.6 is required by flexget
|
||||
|
Loading…
Reference in New Issue
Block a user