depot/third_party/nixpkgs/pkgs/development/python-modules/sunweg/default.nix
Default email 555cd8a8f9 Project import generated by Copybara.
GitOrigin-RevId: 5633bcff0c6162b9e4b5f1264264611e950c8ec7
2024-10-09 18:51:18 +02:00

44 lines
890 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
python-dateutil,
requests,
setuptools,
}:
buildPythonPackage rec {
pname = "sunweg";
version = "3.1.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "rokam";
repo = "sunweg";
rev = "refs/tags/${version}";
hash = "sha256-T67eH5WjS7J2pcNjq9psNmD4MwMfH+HRvk9llqI3FoQ=";
};
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 ];
};
}