python3Packages.autograd: 1.7.0 -> 1.8.0

Diff: https://github.com/HIPS/autograd/compare/v1.7.0...v1.8.0

Changelog: https://github.com/HIPS/autograd/releases/tag/v1.8.0

Changed files
+23 -12
pkgs
development
python-modules
autograd
+23 -12
pkgs/development/python-modules/autograd/default.nix
···
{
lib,
buildPythonPackage,
-
fetchPypi,
hatchling,
numpy,
pytestCheckHook,
-
pythonOlder,
}:
buildPythonPackage rec {
pname = "autograd";
-
version = "1.7.0";
pyproject = true;
-
disabled = pythonOlder "3.8";
-
-
src = fetchPypi {
-
inherit pname version;
-
hash = "sha256-3nQ/02jW31I803MF3NFxhhqXUqFESTZ30sn1pWmD/y8=";
};
build-system = [ hatchling ];
dependencies = [ numpy ];
-
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "autograd" ];
-
meta = with lib; {
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 ];
};
}
···
{
lib,
buildPythonPackage,
+
fetchFromGitHub,
+
+
# build-system
hatchling,
+
+
# dependencies
numpy,
+
+
# tests
+
pytest-cov,
+
pytest-xdist,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "autograd";
+
version = "1.8.0";
pyproject = true;
+
src = fetchFromGitHub {
+
owner = "HIPS";
+
repo = "autograd";
+
tag = "v${version}";
+
hash = "sha256-k4rcalwznKS2QvmyTLra+ciWFifnILW/DDdB8D+clxQ=";
};
build-system = [ hatchling ];
dependencies = [ numpy ];
+
nativeCheckInputs = [
+
pytest-cov
+
pytest-xdist
+
pytestCheckHook
+
];
pythonImportsCheck = [ "autograd" ];
+
meta = {
description = "Compute derivatives of NumPy code efficiently";
homepage = "https://github.com/HIPS/autograd";
changelog = "https://github.com/HIPS/autograd/releases/tag/v${version}";
+
license = lib.licenses.mit;
+
maintainers = with lib.maintainers; [ jluttine ];
};
}