depot/third_party/nixpkgs/pkgs/development/python-modules/sunweg/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

44 lines
890 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
python-dateutil,
requests,
setuptools,
}:
buildPythonPackage rec {
pname = "sunweg";
version = "3.0.2";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "rokam";
repo = "sunweg";
rev = "refs/tags/${version}";
hash = "sha256-/pniECgavRiQdKzNtPINNhOijUW/uhPEOQJtjfr46ps=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
python-dateutil
requests
];
# Module has no tests
doCheck = false;
pythonImportsCheck = [ "sunweg" ];
meta = with lib; {
description = "Module to access the WEG solar energy platform";
homepage = "https://github.com/rokam/sunweg";
changelog = "https://github.com/rokam/sunweg/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}