depot/third_party/nixpkgs/pkgs/development/python-modules/sunweg/default.nix
Default email 4d5a95770c Project import generated by Copybara.
GitOrigin-RevId: 3c5319ad3aa51551182ac82ea17ab1c6b0f0df89
2023-03-04 15:14:45 +03:00

41 lines
817 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, requests
}:
buildPythonPackage rec {
pname = "sunweg";
version = "1.0.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "rokam";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-fGaPn4pp1nDL4MX7K8zP2Vq2R/uRtd8rHSaWEG5Ye7s=";
};
propagatedBuildInputs = [
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 ];
};
}