1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 numpy, 7 pytestCheckHook, 8}: 9 10buildPythonPackage rec { 11 pname = "checkpoint-schedules"; 12 version = "1.0.4"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "firedrakeproject"; 17 repo = "checkpoint_schedules"; 18 tag = "v${version}"; 19 hash = "sha256-3bn/KxxtRLRtOHFeULQdnndonpuhuYLL8/y/zoAurzY="; 20 }; 21 22 build-system = [ setuptools ]; 23 24 dependencies = [ 25 numpy 26 ]; 27 28 pythonImportsCheck = [ 29 "checkpoint_schedules" 30 ]; 31 32 nativeCheckInputs = [ pytestCheckHook ]; 33 34 meta = { 35 homepage = "https://www.firedrakeproject.org/checkpoint_schedules"; 36 downloadPage = "https://github.com/firedrakeproject/checkpoint_schedules"; 37 description = "Schedules for incremental checkpointing of adjoint simulations"; 38 changelog = "https://github.com/firedrakeproject/checkpoint_schedules/releases/tag/${src.tag}"; 39 license = lib.licenses.lgpl3Only; 40 maintainers = with lib.maintainers; [ qbisi ]; 41 }; 42}