10 buildPythonPackage rec {
11 pname = "numdifftools";
13 format = "setuptools";
15 disabled = pythonOlder "3.7";
17 src = fetchFromGitHub {
21 hash = "sha256-HYacLaowSDdrwkxL1h3h+lw/8ahzaecpXEnwrCqMCWk=";
24 propagatedBuildInputs = [
29 # Tests requires algopy and other modules which are optional and/or not available
33 substituteInPlace setup.py \
34 --replace '"pytest-runner"' ""
35 # Remove optional dependencies
36 substituteInPlace requirements.txt \
37 --replace "algopy>=0.4" "" \
38 --replace "statsmodels>=0.6" ""
41 pythonImportsCheck = [ "numdifftools" ];
44 description = "Library to solve automatic numerical differentiation problems in one or more variables";
45 homepage = "https://github.com/pbrod/numdifftools";
46 license = licenses.bsd3;
47 maintainers = with maintainers; [ fab ];