fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
59 lines
1.1 KiB
Nix
59 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
contexttimer,
|
|
setuptools,
|
|
versioneer,
|
|
cython_0,
|
|
numpy,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyrevolve";
|
|
version = "2.2.4";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "devitocodes";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-fcIq/zuKO3W7K9N2E4f2Q6ZVcssZwN/n8o9cCOYmr3E=";
|
|
};
|
|
|
|
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/v${version}";
|
|
description = "Python library to manage checkpointing for adjoints";
|
|
license = licenses.epl10;
|
|
maintainers = with maintainers; [ atila ];
|
|
};
|
|
}
|