1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5, pythonOlder 6, requests 7}: 8 9buildPythonPackage rec { 10 pname = "sunweg"; 11 version = "2.0.0"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchFromGitHub { 17 owner = "rokam"; 18 repo = pname; 19 rev = "refs/tags/${version}"; 20 hash = "sha256-S92PybN+pReI9WtJr9as95uceicsSMadMQfh9JxsE8U="; 21 }; 22 23 propagatedBuildInputs = [ 24 requests 25 ]; 26 27 # Module has no tests 28 doCheck = false; 29 30 pythonImportsCheck = [ 31 "sunweg" 32 ]; 33 34 meta = with lib; { 35 description = "Module to access the WEG solar energy platform"; 36 homepage = "https://github.com/rokam/sunweg"; 37 changelog = "https://github.com/rokam/sunweg/releases/tag/${version}"; 38 license = licenses.mit; 39 maintainers = with maintainers; [ fab ]; 40 }; 41}