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 = "0.6.1"; 16 format = "pyproject"; 17 18 disabled = pythonOlder "3.8"; 19 20 src = fetchFromGitHub { 21 owner = "frenck"; 22 repo = "python-twentemilieu"; 23 rev = "v${version}"; 24 sha256 = "sha256-k2jdw2H/bNejNUjIEQlEA1KkHHpkyFlSDC1HKUoMIqQ="; 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 checkInputs = [ 43 aresponses 44 pytest-asyncio 45 pytestCheckHook 46 ]; 47 48 pythonImportsCheck = [ "twentemilieu" ]; 49 50 meta = with lib; { 51 description = "Python client for Twente Milieu"; 52 homepage = "https://github.com/frenck/python-twentemilieu"; 53 license = with licenses; [ mit ]; 54 maintainers = with maintainers; [ fab ]; 55 }; 56}