python313Packages.numdifftools: 0.9.41 -> 0.9.42

Changelog: https://github.com/pbrod/numdifftools/blob/v0.9.42/CHANGELOG.md
This commit is contained in:
Fabian Affolter
2025-12-29 13:59:58 +01:00
parent ced569a0a2
commit 37fc9cfae2
@@ -3,25 +3,25 @@
buildPythonPackage,
fetchFromGitHub,
numpy,
pythonOlder,
scipy,
pdm-backend,
}:
buildPythonPackage rec {
pname = "numdifftools";
version = "0.9.41";
format = "setuptools";
disabled = pythonOlder "3.7";
version = "0.9.42";
pyproject = true;
src = fetchFromGitHub {
owner = "pbrod";
repo = "numdifftools";
rev = "v${version}";
hash = "sha256-HYacLaowSDdrwkxL1h3h+lw/8ahzaecpXEnwrCqMCWk=";
tag = "v${version}";
hash = "sha256-tNPv+KJuSmMHItHfRUjMIFtAFB+vC530sp+Am0VRG44=";
};
propagatedBuildInputs = [
build-system = [ pdm-backend ];
dependencies = [
numpy
scipy
];
@@ -29,20 +29,12 @@ buildPythonPackage rec {
# Tests requires algopy and other modules which are optional and/or not available
doCheck = false;
postPatch = ''
substituteInPlace setup.py \
--replace '"pytest-runner"' ""
# Remove optional dependencies
substituteInPlace requirements.txt \
--replace "algopy>=0.4" "" \
--replace "statsmodels>=0.6" ""
'';
pythonImportsCheck = [ "numdifftools" ];
meta = {
description = "Library to solve automatic numerical differentiation problems in one or more variables";
homepage = "https://github.com/pbrod/numdifftools";
changelog = "https://github.com/pbrod/numdifftools/blob/${src.tag}/CHANGELOG.md";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ fab ];
};