nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at haskell-updates 56 lines 1.0 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 contexttimer, 6 setuptools, 7 versioneer, 8 cython_0, 9 numpy, 10 pytestCheckHook, 11}: 12 13buildPythonPackage rec { 14 pname = "pyrevolve"; 15 version = "2.2.7"; 16 pyproject = true; 17 18 src = fetchFromGitHub { 19 owner = "devitocodes"; 20 repo = pname; 21 tag = "v${version}"; 22 hash = "sha256-JNK/+9Fl9CKmRSdkmvN6XENrldFuX1ybIwYOMbGO7uI="; 23 }; 24 25 postPatch = '' 26 substituteInPlace setup.py \ 27 --replace ', "flake8"' "" 28 ''; 29 30 nativeBuildInputs = [ 31 cython_0 32 setuptools 33 versioneer 34 ]; 35 36 propagatedBuildInputs = [ 37 contexttimer 38 numpy 39 ]; 40 41 nativeCheckInputs = [ pytestCheckHook ]; 42 43 preCheck = '' 44 rm -rf pyrevolve 45 ''; 46 47 pythonImportsCheck = [ "pyrevolve" ]; 48 49 meta = { 50 homepage = "https://github.com/devitocodes/pyrevolve"; 51 changelog = "https://github.com/devitocodes/pyrevolve/releases/tag/${src.tag}"; 52 description = "Python library to manage checkpointing for adjoints"; 53 license = lib.licenses.epl10; 54 maintainers = [ ]; 55 }; 56}