1{ lib
2, buildPythonPackage
3, fetchPypi
4, numpy
5, future
6, pythonOlder
7}:
8
9buildPythonPackage rec {
10 pname = "autograd";
11 version = "1.6.2";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchPypi {
17 inherit pname version;
18 hash = "sha256-hzHgigxOOJ2GlaQAcq2kUSZBwRO2ys6PTPvo636a7es=";
19 };
20
21 propagatedBuildInputs = [
22 numpy
23 future
24 ];
25
26 # Currently, the PyPI tarball doesn't contain the tests. When that has been
27 # fixed, enable testing. See: https://github.com/HIPS/autograd/issues/404
28 doCheck = false;
29
30 pythonImportsCheck = [
31 "autograd"
32 ];
33
34 meta = with lib; {
35 homepage = "https://github.com/HIPS/autograd";
36 description = "Compute derivatives of NumPy code efficiently";
37 license = licenses.mit;
38 maintainers = with maintainers; [ jluttine ];
39 };
40}