1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 poetry-core, 6 pytest-mock, 7 pytestCheckHook, 8 pythonOlder, 9 requests, 10 retry2, 11}: 12 13buildPythonPackage rec { 14 pname = "zeversolar"; 15 version = "0.3.2"; 16 pyproject = true; 17 18 disabled = pythonOlder "3.10"; 19 20 src = fetchFromGitHub { 21 owner = "kvanzuijlen"; 22 repo = "zeversolar"; 23 tag = version; 24 hash = "sha256-HnF21B7k2MmugMjGIF2EKwwXJWD/WdDvPdz1oaPSS5Y="; 25 }; 26 27 build-system = [ poetry-core ]; 28 29 dependencies = [ 30 requests 31 retry2 32 ]; 33 34 nativeCheckInputs = [ 35 pytest-mock 36 pytestCheckHook 37 ]; 38 39 pythonImportsCheck = [ "zeversolar" ]; 40 41 meta = { 42 description = "Module to interact with the local CGI provided by ZeverSolar"; 43 homepage = "https://github.com/kvanzuijlen/zeversolar"; 44 changelog = "https://github.com/kvanzuijlen/zeversolar/releases/tag/${version}"; 45 license = lib.licenses.asl20; 46 maintainers = with lib.maintainers; [ fab ]; 47 }; 48}