depot/third_party/nixpkgs/pkgs/development/python-modules/eve/default.nix
Default email 3a4df29a92 Project import generated by Copybara.
GitOrigin-RevId: 3d7435c638baffaa826b85459df0fff47f12317d
2022-06-16 19:23:12 +02:00

50 lines
958 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, flask
, events
, pymongo
, simplejson
, cerberus
, setuptools
}:
buildPythonPackage rec {
pname = "Eve";
version = "2.0";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-KVKUSPGGLXOusflL4OjzXdJDGi66q+895qvtaBrSFG8=";
};
disabled = pythonOlder "3.7";
propagatedBuildInputs = [
cerberus
events
flask
pymongo
simplejson
setuptools
];
postPatch = ''
substituteInPlace setup.py \
--replace "events>=0.3,<0.4" "events>=0.3,<0.5"
'';
pythonImportsCheck = [ "eve" ];
# tests call a running mongodb instance
doCheck = false;
meta = with lib; {
homepage = "https://python-eve.org/";
description = "Open source Python REST API framework designed for human beings";
changelog = "https://github.com/pyeve/eve/blob/v${version}/CHANGES.rst";
license = licenses.bsd3;
maintainers = [ maintainers.marsam ];
};
}