Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, aiohttp 3, aioresponses 4, pydantic 5, buildPythonPackage 6, fetchFromGitHub 7, poetry-core 8, pytest-aiohttp 9, pytestCheckHook 10, pythonOlder 11}: 12 13buildPythonPackage rec { 14 pname = "aioopenexchangerates"; 15 version = "0.4.2"; 16 format = "pyproject"; 17 18 disabled = pythonOlder "3.9"; 19 20 src = fetchFromGitHub { 21 owner = "MartinHjelmare"; 22 repo = pname; 23 rev = "refs/tags/v${version}"; 24 hash = "sha256-Ykbw/s932XXX3qWutWUOLV1O9MMgBWPJNveKG8SDhWY="; 25 }; 26 27 nativeBuildInputs = [ 28 poetry-core 29 ]; 30 31 propagatedBuildInputs = [ 32 aiohttp 33 pydantic 34 ]; 35 36 nativeCheckInputs = [ 37 aioresponses 38 pytest-aiohttp 39 pytestCheckHook 40 ]; 41 42 postPatch = '' 43 substituteInPlace pyproject.toml \ 44 --replace " --cov=aioopenexchangerates --cov-report=term-missing:skip-covered" "" 45 ''; 46 47 pythonImportsCheck = [ 48 "aioopenexchangerates" 49 ]; 50 51 meta = with lib; { 52 description = "Library for the Openexchangerates API"; 53 homepage = "https://github.com/MartinHjelmare/aioopenexchangerates"; 54 changelog = "https://github.com/MartinHjelmare/aioopenexchangerates/blob/vv${version}/CHANGELOG.md"; 55 license = with licenses; [ asl20 ]; 56 maintainers = with maintainers; [ fab ]; 57 }; 58}