blob: 4bdc3bde6feb04d1b04df6bfa20f3e4caa42dbb4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
numpy,
scipy,
pdm-backend,
}:
buildPythonPackage rec {
pname = "numdifftools";
version = "0.9.42";
pyproject = true;
src = fetchFromGitHub {
owner = "pbrod";
repo = "numdifftools";
tag = "v${version}";
hash = "sha256-tNPv+KJuSmMHItHfRUjMIFtAFB+vC530sp+Am0VRG44=";
};
build-system = [ pdm-backend ];
dependencies = [
numpy
scipy
];
# Tests requires algopy and other modules which are optional and/or not available
doCheck = false;
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 ];
};
}
|