Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at gcc-offload 58 lines 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.6"; 19 pyproject = true; 20 21 disabled = pythonOlder "3.9"; 22 23 src = fetchFromGitHub { 24 owner = "mcaulifn"; 25 repo = "solcast"; 26 rev = "refs/tags/v${version}"; 27 hash = "sha256-x91QVCDPjfC8rCVam/mrc8HP84ONa2/mJtSV64hrilc="; 28 }; 29 30 pythonRelaxDeps = [ "responses" ]; 31 32 build-system = [ 33 poetry-core 34 poetry-dynamic-versioning 35 ]; 36 37 dependencies = [ 38 anyconfig 39 isodate 40 pyyaml 41 requests 42 ]; 43 44 nativeCheckInputs = [ 45 pytestCheckHook 46 responses 47 ]; 48 49 pythonImportsCheck = [ "pysolcast" ]; 50 51 meta = with lib; { 52 description = "Python library for interacting with the Solcast API"; 53 homepage = "https://github.com/mcaulifn/solcast"; 54 changelog = "https://github.com/mcaulifn/solcast/releases/tag/v${version}"; 55 license = with licenses; [ asl20 ]; 56 maintainers = with maintainers; [ fab ]; 57 }; 58}