nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 37 lines 875 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 requests, 6 setuptools, 7}: 8 9buildPythonPackage (finalAttrs: { 10 pname = "growattserver"; 11 version = "2.0.0"; 12 pyproject = true; 13 14 src = fetchFromGitHub { 15 owner = "indykoning"; 16 repo = "PyPi_GrowattServer"; 17 tag = finalAttrs.version; 18 hash = "sha256-HsBNxE1iHdZbyzGF1rKqiftDXKbOXy8Wf2rQ17kWz6k="; 19 }; 20 21 build-system = [ setuptools ]; 22 23 dependencies = [ requests ]; 24 25 # Project has no tests 26 doCheck = false; 27 28 pythonImportsCheck = [ "growattServer" ]; 29 30 meta = { 31 description = "Python package to retrieve information from Growatt units"; 32 homepage = "https://github.com/indykoning/PyPi_GrowattServer"; 33 changelog = "https://github.com/indykoning/PyPi_GrowattServer/releases/tag/${finalAttrs.src.tag}"; 34 license = lib.licenses.mit; 35 maintainers = with lib.maintainers; [ fab ]; 36 }; 37})