Files
nixpkgs/pkgs/development/python-modules/pyrevolve/default.nix
Martin Weinelt 545478519c python3Packages.pyrevolve: 2.2.4 -> 2.2.6
https://github.com/devitocodes/pyrevolve/releases/tag/v2.2.6

This commit was automatically generated using update-python-libraries.
2025-08-09 19:02:41 +02:00

60 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
contexttimer,
setuptools,
versioneer,
cython_0,
numpy,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "pyrevolve";
version = "2.2.6";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "devitocodes";
repo = pname;
tag = "v${version}";
hash = "sha256-jjiFOlxXjaa4L4IEtojeeS0jx4GsftAeIGBpJLhUcY4=";
};
postPatch = ''
substituteInPlace setup.py \
--replace ', "flake8"' ""
'';
nativeBuildInputs = [
cython_0
setuptools
versioneer
];
propagatedBuildInputs = [
contexttimer
numpy
];
nativeCheckInputs = [ pytestCheckHook ];
preCheck = ''
rm -rf pyrevolve
'';
pythonImportsCheck = [ "pyrevolve" ];
meta = with lib; {
homepage = "https://github.com/devitocodes/pyrevolve";
changelog = "https://github.com/devitocodes/pyrevolve/releases/tag/${src.tag}";
description = "Python library to manage checkpointing for adjoints";
license = licenses.epl10;
maintainers = with maintainers; [ atila ];
};
}