From 774fc98ec6aa2ceb59cac1a4c19d152f459e3306 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 4 May 2023 22:44:34 +0200 Subject: [PATCH] python311Packages.pyrevolve: add changelog to meta - disable on unsupported Python releases - add format --- .../python-modules/pyrevolve/default.nix | 20 ++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/pyrevolve/default.nix b/pkgs/development/python-modules/pyrevolve/default.nix index e99c547198db..754baf91ad38 100644 --- a/pkgs/development/python-modules/pyrevolve/default.nix +++ b/pkgs/development/python-modules/pyrevolve/default.nix @@ -6,11 +6,15 @@ , cython , numpy , pytest +, pythonOlder }: buildPythonPackage rec { pname = "pyrevolve"; version = "2.2.2"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "devitocodes"; @@ -19,8 +23,15 @@ buildPythonPackage rec { hash = "sha256-JLDn3WEBcdO8YYzt/MWOHB/1kcmbmZUsiH00/4Uwlxo="; }; - nativeBuildInputs = [ versioneer cython ]; - propagatedBuildInputs = [ contexttimer numpy ]; + nativeBuildInputs = [ + versioneer + cython + ]; + + propagatedBuildInputs = [ + contexttimer + numpy + ]; nativeCheckInputs = [ pytest ]; # Using approach bellow bcs the tests fail with the pytestCheckHook, throwing the following error @@ -30,10 +41,13 @@ buildPythonPackage rec { pytest ''; - pythonImportsCheck = [ "pyrevolve" ]; + pythonImportsCheck = [ + "pyrevolve" + ]; meta = with lib; { homepage = "https://github.com/devitocodes/pyrevolve"; + changelog = "https://github.com/devitocodes/pyrevolve/releases/tag/v${version}"; description = "Python library to manage checkpointing for adjoints"; license = licenses.epl10; maintainers = with maintainers; [ atila ];