Unverified Commit bbccd7d9 authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

Merge pull request #229965 from r-ryantm/auto-update/python311Packages.pyrevolve

python311Packages.pyrevolve: 2.2 -> 2.2.2
parents df0874c2 774fc98e
Loading
Loading
Loading
Loading
+20 −6
Original line number Diff line number Diff line
@@ -6,21 +6,32 @@
, cython
, numpy
, pytest
, pythonOlder
}:

buildPythonPackage rec {
  pname = "pyrevolve";
  version = "2.2";
  version = "2.2.2";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "devitocodes";
    repo = pname;
    rev = "v${version}";
    hash = "sha256-5a4zvyf2vfz8aI6vFMI2vxekYrcUi/YuPFvZnUOx+Zs=";
    rev = "refs/tags/v${version}";
    hash = "sha256-JLDn3WEBcdO8YYzt/MWOHB/1kcmbmZUsiH00/4Uwlxo=";
  };

  nativeBuildInputs = [ versioneer cython ];
  propagatedBuildInputs = [ contexttimer numpy ];
  nativeBuildInputs = [
    versioneer
    cython
  ];

  propagatedBuildInputs = [
    contexttimer
    numpy
  ];

  nativeCheckInputs = [ pytest ];
  # Using approach bellow bcs the tests fail with the pytestCheckHook, throwing the following error
@@ -30,10 +41,13 @@ buildPythonPackage rec {
    pytest
  '';

  pythonImportsCheck = [ "pyrevolve" ];
  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 ];