1{ lib 2, buildPythonPackage 3, pythonOlder 4, fetchFromGitHub 5, aiohttp 6, yarl 7, aresponses 8, poetry-core 9, pytest-asyncio 10, pytestCheckHook 11}: 12 13buildPythonPackage rec { 14 pname = "twentemilieu"; 15 version = "2.0.1"; 16 format = "pyproject"; 17 18 disabled = pythonOlder "3.11"; 19 20 src = fetchFromGitHub { 21 owner = "frenck"; 22 repo = "python-twentemilieu"; 23 rev = "refs/tags/v${version}"; 24 hash = "sha256-0rs+nBJfyXRj/3n/G2JzUDXaiIYZmWsoIcgLoWKhlV4="; 25 }; 26 27 postPatch = '' 28 substituteInPlace pyproject.toml \ 29 --replace "--cov" "" \ 30 --replace '"0.0.0"' '"${version}"' 31 ''; 32 33 nativeBuildInputs = [ 34 poetry-core 35 ]; 36 37 propagatedBuildInputs = [ 38 aiohttp 39 yarl 40 ]; 41 42 nativeCheckInputs = [ 43 aresponses 44 pytest-asyncio 45 pytestCheckHook 46 ]; 47 48 pythonImportsCheck = [ 49 "twentemilieu" 50 ]; 51 52 meta = with lib; { 53 description = "Python client for Twente Milieu"; 54 homepage = "https://github.com/frenck/python-twentemilieu"; 55 changelog = "https://github.com/frenck/python-twentemilieu/releases/tag/v${version}"; 56 license = with licenses; [ mit ]; 57 maintainers = with maintainers; [ fab ]; 58 }; 59}