From c9c73aa0ca5bfed034a7e3762ae7bafaadbf855c Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 29 Sep 2024 17:03:43 +0200 Subject: [PATCH] python3Packages.autograd: 1.6.2 -> 1.7.0 --- .../python-modules/autograd/default.nix | 25 +++++++++---------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/pkgs/development/python-modules/autograd/default.nix b/pkgs/development/python-modules/autograd/default.nix index 2b7569d8f745..e8be58101302 100644 --- a/pkgs/development/python-modules/autograd/default.nix +++ b/pkgs/development/python-modules/autograd/default.nix @@ -2,37 +2,36 @@ lib, buildPythonPackage, fetchPypi, + hatchling, numpy, - future, + pytestCheckHook, pythonOlder, }: buildPythonPackage rec { pname = "autograd"; - version = "1.6.2"; - format = "setuptools"; + version = "1.7.0"; + pyproject = true; - disabled = pythonOlder "3.7"; + disabled = pythonOlder "3.8"; src = fetchPypi { inherit pname version; - hash = "sha256-hzHgigxOOJ2GlaQAcq2kUSZBwRO2ys6PTPvo636a7es="; + hash = "sha256-3nQ/02jW31I803MF3NFxhhqXUqFESTZ30sn1pWmD/y8="; }; - propagatedBuildInputs = [ - numpy - future - ]; + build-system = [ hatchling ]; - # Currently, the PyPI tarball doesn't contain the tests. When that has been - # fixed, enable testing. See: https://github.com/HIPS/autograd/issues/404 - doCheck = false; + dependencies = [ numpy ]; + + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "autograd" ]; meta = with lib; { - homepage = "https://github.com/HIPS/autograd"; description = "Compute derivatives of NumPy code efficiently"; + homepage = "https://github.com/HIPS/autograd"; + changelog = "https://github.com/HIPS/autograd/releases/tag/v${version}"; license = licenses.mit; maintainers = with maintainers; [ jluttine ]; };