From 4d7019a4f34e0d8a9d2fd9e08ebf6d5d54ab715e Mon Sep 17 00:00:00 2001 From: Jaakko Luttinen Date: Wed, 6 Jun 2018 13:22:37 +0300 Subject: [PATCH] pythonPackages.pvlib: init at 0.5.2 --- .../python-modules/pvlib/default.nix | 25 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 27 insertions(+) create mode 100644 pkgs/development/python-modules/pvlib/default.nix diff --git a/pkgs/development/python-modules/pvlib/default.nix b/pkgs/development/python-modules/pvlib/default.nix new file mode 100644 index 000000000000..296b20fac4a2 --- /dev/null +++ b/pkgs/development/python-modules/pvlib/default.nix @@ -0,0 +1,25 @@ +{ stdenv, buildPythonPackage, fetchPypi, numpy, pandas, pytz, six, pytest }: + +buildPythonPackage rec { + pname = "pvlib"; + version = "0.5.2"; + + src = fetchPypi { + inherit pname version; + sha256 = "1897v9qq97nk5n0hfm9089yz8pffd42795mnhcyq48g9bsyap1xi"; + }; + + checkInputs = [ pytest ]; + propagatedBuildInputs = [ numpy pandas pytz six ]; + + # Currently, the PyPI tarball doesn't contain the tests. When that has been + # fixed, enable testing. See: https://github.com/pvlib/pvlib-python/issues/473 + doCheck = false; + + meta = with stdenv.lib; { + homepage = http://pvlib-python.readthedocs.io; + description = "Simulate the performance of photovoltaic energy systems"; + license = licenses.bsd3; + maintainers = with maintainers; [ jluttine ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 2c4ab7805bda..d017e899ab05 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -9888,6 +9888,8 @@ in { name = "${python.libPrefix}-${pkgs.kmsxx.name}"; }); + pvlib = callPackage ../development/python-modules/pvlib { }; + pybase64 = callPackage ../development/python-modules/pybase64 { }; pylibconfig2 = callPackage ../development/python-modules/pylibconfig2 { };