diff --git a/pkgs/development/python-modules/eve/default.nix b/pkgs/development/python-modules/eve/default.nix index ef664651a542..0e25f3a12115 100644 --- a/pkgs/development/python-modules/eve/default.nix +++ b/pkgs/development/python-modules/eve/default.nix @@ -1,51 +1,50 @@ { lib, buildPythonPackage, - fetchPypi, - pythonOlder, - flask, - events, - pymongo, - simplejson, cerberus, + events, + fetchFromGitHub, + flask, + pymongo, + pythonOlder, setuptools, + simplejson, }: buildPythonPackage rec { pname = "eve"; - version = "2.1.0"; - format = "setuptools"; - - src = fetchPypi { - inherit version; - pname = "Eve"; - hash = "sha256-NobIzu+7+NI7M4NRQKjrhye3v6YGMeGnbDRB39b3Dy8="; - }; + version = "2.2.0"; + pyproject = true; disabled = pythonOlder "3.7"; + src = fetchFromGitHub { + owner = "pyeve"; + repo = "eve"; + rev = "refs/tags/v${version}"; + hash = "sha256-BLDuJLAN6ieaD7vBPV6AwlpPqbAyb+LzEp9AfCHveSY="; + }; + + pythonRelaxDeps = [ "events" ]; + + build-system = [ setuptools ]; + propagatedBuildInputs = [ cerberus events flask pymongo simplejson - setuptools ]; - postPatch = '' - substituteInPlace setup.py \ - --replace "events>=0.3,<0.4" "events>=0.3" - ''; - pythonImportsCheck = [ "eve" ]; - # tests call a running mongodb instance + # 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"; + homepage = "https://python-eve.org/"; changelog = "https://github.com/pyeve/eve/blob/v${version}/CHANGES.rst"; license = licenses.bsd3; maintainers = [ ];