1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, isodate 5, pytestCheckHook 6, pythonOlder 7, pyyaml 8, requests 9, responses 10, poetry-core 11}: 12 13buildPythonPackage rec { 14 pname = "pysolcast"; 15 version = "2.0.0"; 16 pyproject = true; 17 18 disabled = pythonOlder "3.9"; 19 20 src = fetchFromGitHub { 21 owner = "mcaulifn"; 22 repo = "solcast"; 23 rev = "refs/tags/v${version}"; 24 hash = "sha256-jLhM47o6LvkPux0kusOrRk4TDS6VLWE0QMEiQxlBCwo="; 25 }; 26 27 nativeBuildInputs = [ 28 poetry-core 29 ]; 30 31 propagatedBuildInputs = [ 32 isodate 33 pyyaml 34 requests 35 ]; 36 37 nativeCheckInputs = [ 38 pytestCheckHook 39 responses 40 ]; 41 42 pythonImportsCheck = [ 43 "pysolcast" 44 ]; 45 46 meta = with lib; { 47 description = "Python library for interacting with the Solcast API"; 48 homepage = "https://github.com/mcaulifn/solcast"; 49 changelog = "https://github.com/mcaulifn/solcast/releases/tag/v${version}"; 50 license = with licenses; [ asl20 ]; 51 maintainers = with maintainers; [ fab ]; 52 }; 53}