Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 55 lines
Nix
at litex
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556{ lib, buildPythonPackage, fetchFromGitHub, contexttimer, versioneer, cython, numpy, pytest, pythonOlder}:
buildPythonPackage rec { pname = "pyrevolve"; version = "2.2.2"; format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub { owner = "devitocodes"; repo = pname; rev = "refs/tags/v${version}"; hash = "sha256-JLDn3WEBcdO8YYzt/MWOHB/1kcmbmZUsiH00/4Uwlxo="; };
nativeBuildInputs = [ versioneer cython ];
propagatedBuildInputs = [ contexttimer numpy ];
nativeCheckInputs = [ pytest ]; # Using approach bellow bcs the tests fail with the pytestCheckHook, throwing the following error # ImportError: cannot import name 'crevolve' from partially initialized module 'pyrevolve' # (most likely due to a circular import) checkPhase = '' pytest '';
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 ]; };}