depot/third_party/nixpkgs/pkgs/development/python-modules/eve/default.nix
Default email 1be0098156 Project import generated by Copybara.
GitOrigin-RevId: 667e5581d16745bcda791300ae7e2d73f49fff25
2022-11-04 13:27:35 +01:00

53 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, flask
, events
, pymongo
, simplejson
, cerberus
, setuptools
}:
buildPythonPackage rec {
pname = "eve";
version = "2.0.3";
format = "setuptools";
src = fetchPypi {
inherit version;
pname = "Eve";
sha256 = "sha256-UiOhnJyEy5bPIIRHAhuWo8AqHOCp0OE5d0btujfeq4o=";
};
disabled = pythonOlder "3.7";
propagatedBuildInputs = [
cerberus
events
flask
pymongo
simplejson
setuptools
];
postPatch = ''
substituteInPlace setup.py \
--replace "flask<2.2" "flask" \
--replace "events>=0.3,<0.4" "events>=0.3"
'';
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 ];
};
}