mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 23:23:07 +00:00
928df4e7b1
Diff: https://github.com/rokam/sunweg/compare/refs/tags/1.0.0...2.0.0 Changelog: https://github.com/rokam/sunweg/releases/tag/2.0.0
42 lines
817 B
Nix
42 lines
817 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, requests
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "sunweg";
|
|
version = "2.0.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rokam";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-S92PybN+pReI9WtJr9as95uceicsSMadMQfh9JxsE8U=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|