Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at master 875 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6 python-dateutil, 7 requests, 8 setuptools, 9}: 10 11buildPythonPackage rec { 12 pname = "sunweg"; 13 version = "3.1.0"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "rokam"; 20 repo = "sunweg"; 21 tag = version; 22 hash = "sha256-T67eH5WjS7J2pcNjq9psNmD4MwMfH+HRvk9llqI3FoQ="; 23 }; 24 25 nativeBuildInputs = [ setuptools ]; 26 27 propagatedBuildInputs = [ 28 python-dateutil 29 requests 30 ]; 31 32 # Module has no tests 33 doCheck = false; 34 35 pythonImportsCheck = [ "sunweg" ]; 36 37 meta = with lib; { 38 description = "Module to access the WEG solar energy platform"; 39 homepage = "https://github.com/rokam/sunweg"; 40 changelog = "https://github.com/rokam/sunweg/releases/tag/${version}"; 41 license = licenses.mit; 42 maintainers = with maintainers; [ fab ]; 43 }; 44}