mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-30 08:44:31 +00:00
Merge pull request #293570 from dotlambda/flask-pymongo-refactor
python311Packages.flask-pymongo: refactor
This commit is contained in:
commit
dd420a97d0
@ -1,36 +0,0 @@
|
||||
{ buildPythonPackage
|
||||
, fetchPypi
|
||||
, flask
|
||||
, pymongo
|
||||
, vcversioner
|
||||
, lib
|
||||
, pytest
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "flask-pymongo";
|
||||
version = "2.3.0";
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "Flask-PyMongo";
|
||||
inherit version;
|
||||
sha256 = "051kwdk07y4xm4yawcjhn6bz8swxp9nanv7jj35mz2l0r0nv03k2";
|
||||
};
|
||||
|
||||
nativeCheckInputs = [ pytest ];
|
||||
|
||||
checkPhase = ''
|
||||
pytest
|
||||
'';
|
||||
|
||||
# Tests seem to hang
|
||||
doCheck = false;
|
||||
|
||||
propagatedBuildInputs = [ flask pymongo vcversioner ];
|
||||
|
||||
meta = {
|
||||
homepage = "https://flask-pymongo.readthedocs.org/";
|
||||
description = "PyMongo support for Flask applications";
|
||||
license = lib.licenses.bsd2;
|
||||
};
|
||||
}
|
49
pkgs/development/python-modules/flask-pymongo/default.nix
Normal file
49
pkgs/development/python-modules/flask-pymongo/default.nix
Normal file
@ -0,0 +1,49 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, setuptools
|
||||
, vcversioner
|
||||
, flask
|
||||
, pymongo
|
||||
, six
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "flask-pymongo";
|
||||
version = "2.3.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "Flask-PyMongo";
|
||||
inherit version;
|
||||
hash = "sha256-Yg6wLciAil/LkPJsq2y6nWv0l7FQMq48qZ34A2bjMxQ=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
vcversioner
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
flask
|
||||
pymongo
|
||||
six
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "flask_pymongo" ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
# requires running MongoDB
|
||||
doCheck = false;
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/dcrosta/flask-pymongo";
|
||||
description = "PyMongo support for Flask applications";
|
||||
license = lib.licenses.bsd2;
|
||||
maintainers = [ ];
|
||||
};
|
||||
}
|
@ -4215,7 +4215,7 @@ self: super: with self; {
|
||||
|
||||
flask-principal = callPackage ../development/python-modules/flask-principal { };
|
||||
|
||||
flask-pymongo = callPackage ../development/python-modules/Flask-PyMongo { };
|
||||
flask-pymongo = callPackage ../development/python-modules/flask-pymongo { };
|
||||
|
||||
flask-restful = callPackage ../development/python-modules/flask-restful { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user