about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/pvlib/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/pvlib/default.nix')
-rw-r--r--nixpkgs/pkgs/development/python-modules/pvlib/default.nix69
1 files changed, 69 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/pvlib/default.nix b/nixpkgs/pkgs/development/python-modules/pvlib/default.nix
new file mode 100644
index 000000000000..986fd4ed8b4d
--- /dev/null
+++ b/nixpkgs/pkgs/development/python-modules/pvlib/default.nix
@@ -0,0 +1,69 @@
+{ lib
+, buildPythonPackage
+, fetchPypi
+, h5py
+, numpy
+, pandas
+, pytestCheckHook
+, pytest-mock
+, pytest-remotedata
+, pytest-rerunfailures
+, pytest-timeout
+, pythonOlder
+, pytz
+, requests
+, requests-mock
+, scipy
+, setuptools
+, setuptools-scm
+, wheel
+}:
+
+buildPythonPackage rec {
+  pname = "pvlib";
+  version = "0.10.4";
+  pyproject = true;
+
+  disabled = pythonOlder "3.7";
+
+  src = fetchPypi{
+    inherit pname version;
+    hash = "sha256-DF+ov+ixSjmjC/7+WmzwFksuvYKikSbbPZBqhNk5+HI=";
+  };
+
+  nativeBuildInputs = [
+    setuptools
+    setuptools-scm
+    wheel
+  ];
+
+  propagatedBuildInputs = [
+    h5py
+    numpy
+    pandas
+    pytz
+    requests
+    scipy
+  ];
+
+  nativeCheckInputs = [
+    pytestCheckHook
+    pytest-mock
+    pytest-remotedata
+    pytest-rerunfailures
+    pytest-timeout
+    requests-mock
+  ];
+
+  pythonImportsCheck = [
+    "pvlib"
+  ];
+
+  meta = with lib; {
+    homepage = "https://pvlib-python.readthedocs.io";
+    description = "Simulate the performance of photovoltaic energy systems";
+    changelog = "https://pvlib-python.readthedocs.io/en/v${version}/whatsnew.html";
+    license = licenses.bsd3;
+    maintainers = with maintainers; [ jluttine ];
+  };
+}