nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 numpy,
6 scipy,
7 pdm-backend,
8}:
9
10buildPythonPackage rec {
11 pname = "numdifftools";
12 version = "0.9.42";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "pbrod";
17 repo = "numdifftools";
18 tag = "v${version}";
19 hash = "sha256-tNPv+KJuSmMHItHfRUjMIFtAFB+vC530sp+Am0VRG44=";
20 };
21
22 build-system = [ pdm-backend ];
23
24 dependencies = [
25 numpy
26 scipy
27 ];
28
29 # Tests requires algopy and other modules which are optional and/or not available
30 doCheck = false;
31
32 pythonImportsCheck = [ "numdifftools" ];
33
34 meta = {
35 description = "Library to solve automatic numerical differentiation problems in one or more variables";
36 homepage = "https://github.com/pbrod/numdifftools";
37 changelog = "https://github.com/pbrod/numdifftools/blob/${src.tag}/CHANGELOG.md";
38 license = lib.licenses.bsd3;
39 maintainers = with lib.maintainers; [ fab ];
40 };
41}