diff options
author | Jaakko Luttinen <jaakko.luttinen@iki.fi> | 2018-06-07 12:06:51 +0300 |
---|---|---|
committer | Robert Schütz <rschuetz17@gmail.com> | 2018-06-07 11:06:51 +0200 |
commit | e5d43df48cfbedb114651efedd995204918f17df (patch) | |
tree | 051fdf9c37af2e626187f67fff8f2c1b0b361fb6 | |
parent | 81853859a1d67a0d7569487688e58da6db608d4e (diff) | |
download | nixpkgs-e5d43df48cfbedb114651efedd995204918f17df.tar nixpkgs-e5d43df48cfbedb114651efedd995204918f17df.tar.gz nixpkgs-e5d43df48cfbedb114651efedd995204918f17df.tar.bz2 nixpkgs-e5d43df48cfbedb114651efedd995204918f17df.tar.lz nixpkgs-e5d43df48cfbedb114651efedd995204918f17df.tar.xz nixpkgs-e5d43df48cfbedb114651efedd995204918f17df.tar.zst nixpkgs-e5d43df48cfbedb114651efedd995204918f17df.zip |
pythonPackages.autograd: init at 1.2 (#41558)
-rw-r--r-- | pkgs/development/python-modules/autograd/default.nix | 24 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 2 |
2 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/autograd/default.nix b/pkgs/development/python-modules/autograd/default.nix new file mode 100644 index 00000000000..1c3c1fdefbe --- /dev/null +++ b/pkgs/development/python-modules/autograd/default.nix @@ -0,0 +1,24 @@ +{ stdenv, buildPythonPackage, fetchPypi, numpy, future, nose }: + +buildPythonPackage rec { + pname = "autograd"; + version = "1.2"; + + src = fetchPypi { + inherit pname version; + sha256 = "0zd4lhz9dpll4i63jjijbzkzbgmg8h88il7lr7kmcylvadnzm2x0"; + }; + + propagatedBuildInputs = [ numpy future ]; + + # Currently, the PyPI tarball doesn't contain the tests. When that has been + # fixed, enable testing. See: https://github.com/HIPS/autograd/issues/404 + doCheck = false; + + meta = with stdenv.lib; { + homepage = https://github.com/HIPS/autograd; + description = "Compute derivatives of NumPy code efficiently"; + license = licenses.mit; + maintainers = with maintainers; [ jluttine ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 2c4ab7805bd..a60fd40c70d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -195,6 +195,8 @@ in { inherit (pkgs) augeas; }; + autograd = callPackage ../development/python-modules/autograd { }; + automat = callPackage ../development/python-modules/automat { }; aws-xray-sdk = callPackage ../development/python-modules/aws-xray-sdk { }; |