Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / pyrevolve / default.nix
blob8fec5f23ef6e2777b7781022d3fe669df0f03f0a
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , contexttimer
5 , setuptools
6 , versioneer
7 , cython_0
8 , numpy
9 , pytestCheckHook
10 , pythonOlder
13 buildPythonPackage rec {
14   pname = "pyrevolve";
15   version = "2.2.4";
16   format = "pyproject";
18   disabled = pythonOlder "3.7";
20   src = fetchFromGitHub {
21     owner = "devitocodes";
22     repo = pname;
23     rev = "refs/tags/v${version}";
24     hash = "sha256-fcIq/zuKO3W7K9N2E4f2Q6ZVcssZwN/n8o9cCOYmr3E=";
25   };
27   postPatch = ''
28     substituteInPlace setup.py \
29       --replace ', "flake8"' ""
30   '';
32   nativeBuildInputs = [
33     cython_0
34     setuptools
35     versioneer
36   ];
38   propagatedBuildInputs = [
39     contexttimer
40     numpy
41   ];
43   nativeCheckInputs = [
44     pytestCheckHook
45   ];
47   preCheck = ''
48     rm -rf pyrevolve
49   '';
51   pythonImportsCheck = [
52     "pyrevolve"
53   ];
55   meta = with lib; {
56     homepage = "https://github.com/devitocodes/pyrevolve";
57     changelog = "https://github.com/devitocodes/pyrevolve/releases/tag/v${version}";
58     description = "Python library to manage checkpointing for adjoints";
59     license = licenses.epl10;
60     maintainers = with maintainers; [ atila ];
61   };