2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pythonOlder,
|
|
|
|
flask,
|
|
|
|
events,
|
|
|
|
pymongo,
|
|
|
|
simplejson,
|
|
|
|
cerberus,
|
|
|
|
setuptools,
|
2020-05-15 21:57:56 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2022-10-30 15:09:59 +00:00
|
|
|
pname = "eve";
|
2023-03-15 16:39:30 +00:00
|
|
|
version = "2.1.0";
|
2022-10-30 15:09:59 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2022-10-30 15:09:59 +00:00
|
|
|
inherit version;
|
|
|
|
pname = "Eve";
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-NobIzu+7+NI7M4NRQKjrhye3v6YGMeGnbDRB39b3Dy8=";
|
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 "events>=0.3,<0.4" "events>=0.3"
|
2021-05-20 23:08:51 +00:00
|
|
|
'';
|
|
|
|
|
2024-06-05 15:53:02 +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;
|
2024-05-15 15:35:15 +00:00
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|