python.pkgs.flask-pymong: 0.3.1 -> 0.5.1
This commit is contained in:
parent
0081ba712d
commit
78c7b40062
35
pkgs/development/python-modules/Flask-PyMongo/default.nix
Normal file
35
pkgs/development/python-modules/Flask-PyMongo/default.nix
Normal file
|
@ -0,0 +1,35 @@
|
|||
{ buildPythonPackage
|
||||
, fetchPypi
|
||||
, flask
|
||||
, pymongo
|
||||
, lib
|
||||
, pytest
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "Flask-PyMongo";
|
||||
name = "${pname}-${version}";
|
||||
version = "0.5.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "2baaa2ba5107d72b3a8bd4b5c0c8881316e35340ad1ae979cc13f1f3c8843b3d";
|
||||
};
|
||||
|
||||
checkInputs = [ pytest ];
|
||||
|
||||
checkPhase = ''
|
||||
py.test tests
|
||||
'';
|
||||
|
||||
# Tests seem to hang
|
||||
doCheck = false;
|
||||
|
||||
propagatedBuildInputs = [ flask pymongo ];
|
||||
|
||||
meta = {
|
||||
homepage = "http://flask-pymongo.readthedocs.org/";
|
||||
description = "PyMongo support for Flask applications";
|
||||
license = lib.licenses.bsd2;
|
||||
};
|
||||
}
|
|
@ -9853,23 +9853,7 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
flask-pymongo = buildPythonPackage rec {
|
||||
name = "Flask-PyMongo-${version}";
|
||||
version = "0.3.1";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "mirror://pypi/F/Flask-PyMongo/${name}.tar.gz";
|
||||
sha256 = "0305qngvjrjyyabf8gxqgqvd9ffh00gr5yfrjf4nncr2my9svbyd";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = with self; [ flask pymongo_2_9_1 ];
|
||||
|
||||
meta = {
|
||||
homepage = "http://flask-pymongo.readthedocs.org/";
|
||||
description = "PyMongo support for Flask applications";
|
||||
license = licenses.bsd2;
|
||||
};
|
||||
};
|
||||
flask-pymongo = callPackage ../development/python-modules/Flask-PyMongo { };
|
||||
|
||||
flask-restful = buildPythonPackage rec {
|
||||
name = "Flask-RESTful-${version}";
|
||||
|
|
Loading…
Reference in a new issue