evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / pyrevolve / default.nix
blob0af3e6fe85ec5586b90635a3f7a1f2ce46a26128
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   contexttimer,
6   setuptools,
7   versioneer,
8   cython_0,
9   numpy,
10   pytestCheckHook,
11   pythonOlder,
14 buildPythonPackage rec {
15   pname = "pyrevolve";
16   version = "2.2.4";
17   format = "pyproject";
19   disabled = pythonOlder "3.7";
21   src = fetchFromGitHub {
22     owner = "devitocodes";
23     repo = pname;
24     rev = "refs/tags/v${version}";
25     hash = "sha256-fcIq/zuKO3W7K9N2E4f2Q6ZVcssZwN/n8o9cCOYmr3E=";
26   };
28   postPatch = ''
29     substituteInPlace setup.py \
30       --replace ', "flake8"' ""
31   '';
33   nativeBuildInputs = [
34     cython_0
35     setuptools
36     versioneer
37   ];
39   propagatedBuildInputs = [
40     contexttimer
41     numpy
42   ];
44   nativeCheckInputs = [ pytestCheckHook ];
46   preCheck = ''
47     rm -rf pyrevolve
48   '';
50   pythonImportsCheck = [ "pyrevolve" ];
52   meta = with lib; {
53     homepage = "https://github.com/devitocodes/pyrevolve";
54     changelog = "https://github.com/devitocodes/pyrevolve/releases/tag/v${version}";
55     description = "Python library to manage checkpointing for adjoints";
56     license = licenses.epl10;
57     maintainers = with maintainers; [ atila ];
58   };