Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, aiohttp 3, aioresponses 4, buildPythonPackage 5, fetchFromGitHub 6, orjson 7, pytest-asyncio 8, pytest-error-for-skips 9, pytestCheckHook 10, pythonOlder 11}: 12 13buildPythonPackage rec { 14 pname = "accuweather"; 15 version = "0.5.2"; 16 format = "setuptools"; 17 18 disabled = pythonOlder "3.9"; 19 20 src = fetchFromGitHub { 21 owner = "bieniu"; 22 repo = pname; 23 rev = "refs/tags/${version}"; 24 hash = "sha256-rXA5A80PWn08VPeimJeMNWMGvzaE/gWrRuJseHiDkRg="; 25 }; 26 27 propagatedBuildInputs = [ 28 aiohttp 29 orjson 30 ]; 31 32 nativeCheckInputs = [ 33 aioresponses 34 pytest-asyncio 35 pytest-error-for-skips 36 pytestCheckHook 37 ]; 38 39 pythonImportsCheck = [ 40 "accuweather" 41 ]; 42 43 meta = with lib; { 44 description = "Python wrapper for getting weather data from AccuWeather servers"; 45 homepage = "https://github.com/bieniu/accuweather"; 46 changelog = "https://github.com/bieniu/accuweather/releases/tag/${version}"; 47 license = licenses.asl20; 48 maintainers = with maintainers; [ jamiemagee ]; 49 }; 50}