{ lib, anyconfig, buildPythonPackage, fetchFromGitHub, isodate, poetry-core, poetry-dynamic-versioning, pytestCheckHook, pythonOlder, pyyaml, requests, responses, }: buildPythonPackage rec { pname = "pysolcast"; version = "2.0.7"; pyproject = true; disabled = pythonOlder "3.9"; src = fetchFromGitHub { owner = "mcaulifn"; repo = "solcast"; tag = "v${version}"; hash = "sha256-VNT86sZyQBNCA4jq+uYp2sBd/FLN0c5tp2u4/PjVGnA="; }; pythonRelaxDeps = [ "isodate" "responses" ]; build-system = [ poetry-core poetry-dynamic-versioning ]; dependencies = [ anyconfig isodate pyyaml requests ]; nativeCheckInputs = [ pytestCheckHook responses ]; pythonImportsCheck = [ "pysolcast" ]; meta = with lib; { description = "Python library for interacting with the Solcast API"; homepage = "https://github.com/mcaulifn/solcast"; changelog = "https://github.com/mcaulifn/solcast/releases/tag/${src.tag}"; license = licenses.asl20; maintainers = with maintainers; [ fab ]; }; }