2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-05-15 21:57:56 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2022-06-16 17:23:12 +00:00
|
|
|
, pythonOlder
|
2020-05-15 21:57:56 +00:00
|
|
|
, flask
|
|
|
|
, events
|
|
|
|
, pymongo
|
|
|
|
, simplejson
|
|
|
|
, cerberus
|
|
|
|
, setuptools
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2022-10-30 15:09:59 +00:00
|
|
|
pname = "eve";
|
|
|
|
version = "2.0.2";
|
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2022-10-30 15:09:59 +00:00
|
|
|
inherit version;
|
|
|
|
pname = "Eve";
|
|
|
|
sha256 = "80cad5702d07189c5f43f432d307c473331144477a6a360d22a27dc018366c13";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
cerberus
|
|
|
|
events
|
|
|
|
flask
|
|
|
|
pymongo
|
|
|
|
simplejson
|
2020-05-15 21:57:56 +00:00
|
|
|
setuptools
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
2022-10-30 15:09:59 +00:00
|
|
|
--replace "flask<2.2" "flask" \
|
|
|
|
--replace "events>=0.3,<0.4" "events>=0.3"
|
2021-05-20 23:08:51 +00:00
|
|
|
'';
|
|
|
|
|
2020-05-15 21:57:56 +00:00
|
|
|
pythonImportsCheck = [ "eve" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# tests call a running mongodb instance
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://python-eve.org/";
|
|
|
|
description = "Open source Python REST API framework designed for human beings";
|
2022-06-16 17:23:12 +00:00
|
|
|
changelog = "https://github.com/pyeve/eve/blob/v${version}/CHANGES.rst";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.marsam ];
|
|
|
|
};
|
|
|
|
}
|