From 9435c9d6fc2ac1b1c933ac5a7c0ab71c29048154 Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Tue, 18 Apr 2017 12:03:00 +0200 Subject: [PATCH] pythonPackages.statsmodels: 0.6.1 -> 0.8.0 --- .../python-modules/statsmodels/default.nix | 32 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 24 +------------- 2 files changed, 33 insertions(+), 23 deletions(-) create mode 100644 pkgs/development/python-modules/statsmodels/default.nix diff --git a/pkgs/development/python-modules/statsmodels/default.nix b/pkgs/development/python-modules/statsmodels/default.nix new file mode 100644 index 00000000000..bdadac896ef --- /dev/null +++ b/pkgs/development/python-modules/statsmodels/default.nix @@ -0,0 +1,32 @@ +{ lib +, buildPythonPackage +, fetchPypi +, nose +, numpy +, scipy +, pandas +, patsy +, cython +, matplotlib +}: + +buildPythonPackage rec { + pname = "statsmodels"; + version = "0.8.0"; + name = "${pname}-${version}"; + + src = fetchPypi { + inherit pname version; + sha256 = "26431ab706fbae896db7870a0892743bfbb9f5c83231644692166a31d2d86048"; + }; + + buildInputs = with self; [ nose ]; + propagatedBuildInputs = with self; [numpy scipy pandas patsy cython matplotlib]; + + meta = { + description = "Statistical computations and models for use with SciPy"; + homepage = "https://www.github.com/statsmodels/statsmodels"; + license = licenses.bsd3; + maintainers = with maintainers; [ fridh ]; + }; +} \ No newline at end of file diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 01e561ee38d..955af6aaad4 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -24986,29 +24986,7 @@ in { }; }; - statsmodels = buildPythonPackage rec { - name = "statsmodels-${version}"; - version = "0.6.1"; - - src = pkgs.fetchurl { - url = "mirror://pypi/s/statsmodels/${name}.tar.gz"; - sha256 = "be4e44374aec9e848b73e5a230dee190ac0c4519e1d40f69a5813190b13ec676"; - }; - - buildInputs = with self; [ nose ]; - propagatedBuildInputs = with self; [numpy scipy pandas patsy cython matplotlib]; - - meta = { - description = "Statistical computations and models for use with SciPy"; - homepage = "https://www.github.com/statsmodels/statsmodels"; - license = licenses.bsd3; - maintainers = with maintainers; [ fridh ]; - }; - - # Many tests fail when using latest numpy and pandas. - # See also https://github.com/statsmodels/statsmodels/issues/2602 - doCheck = false; - }; + statsmodels = callPackage ../development/python-modules/statsmodels { }; python_statsd = buildPythonPackage rec { name = "python-statsd-${version}";