at master 1.1 kB view raw
1{ 2 lib, 3 anyconfig, 4 buildPythonPackage, 5 fetchFromGitHub, 6 isodate, 7 poetry-core, 8 poetry-dynamic-versioning, 9 pytestCheckHook, 10 pythonOlder, 11 pyyaml, 12 requests, 13 responses, 14}: 15 16buildPythonPackage rec { 17 pname = "pysolcast"; 18 version = "2.0.7"; 19 pyproject = true; 20 21 disabled = pythonOlder "3.9"; 22 23 src = fetchFromGitHub { 24 owner = "mcaulifn"; 25 repo = "solcast"; 26 tag = "v${version}"; 27 hash = "sha256-VNT86sZyQBNCA4jq+uYp2sBd/FLN0c5tp2u4/PjVGnA="; 28 }; 29 30 pythonRelaxDeps = [ 31 "isodate" 32 "responses" 33 ]; 34 35 build-system = [ 36 poetry-core 37 poetry-dynamic-versioning 38 ]; 39 40 dependencies = [ 41 anyconfig 42 isodate 43 pyyaml 44 requests 45 ]; 46 47 nativeCheckInputs = [ 48 pytestCheckHook 49 responses 50 ]; 51 52 pythonImportsCheck = [ "pysolcast" ]; 53 54 meta = with lib; { 55 description = "Python library for interacting with the Solcast API"; 56 homepage = "https://github.com/mcaulifn/solcast"; 57 changelog = "https://github.com/mcaulifn/solcast/releases/tag/${src.tag}"; 58 license = licenses.asl20; 59 maintainers = with maintainers; [ fab ]; 60 }; 61}