2018-09-13 16:03:57 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, flask, events
|
2019-05-22 16:49:42 +01:00
|
|
|
, pymongo, simplejson, cerberus, werkzeug }:
|
2017-09-14 03:37:57 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "Eve";
|
2019-12-19 19:31:10 +00:00
|
|
|
version = "1.0";
|
2017-09-14 03:37:57 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-12-19 19:31:10 +00:00
|
|
|
sha256 = "ebde455e631b8eb9d38783eedfbd7e416b4477cce3d9988880eb3e477256a11e";
|
2017-09-14 03:37:57 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
cerberus
|
|
|
|
events
|
|
|
|
flask
|
|
|
|
pymongo
|
|
|
|
simplejson
|
2019-05-22 16:49:42 +01:00
|
|
|
werkzeug
|
2017-09-14 03:37:57 +01:00
|
|
|
];
|
|
|
|
|
2019-10-17 23:07:16 +01:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "werkzeug==0.15.4" "werkzeug"
|
|
|
|
'';
|
|
|
|
|
2017-09-14 03:37:57 +01:00
|
|
|
# tests call a running mongodb instance
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2019-05-22 16:49:42 +01:00
|
|
|
homepage = "https://python-eve.org/";
|
2017-09-14 03:37:57 +01:00
|
|
|
description = "Open source Python REST API framework designed for human beings";
|
|
|
|
license = licenses.bsd3;
|
2019-05-22 16:49:42 +01:00
|
|
|
maintainers = [ maintainers.marsam ];
|
2017-09-14 03:37:57 +01:00
|
|
|
};
|
|
|
|
}
|