Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 aiohttp, 4 aresponses, 5 buildPythonPackage, 6 fetchFromGitHub, 7 poetry-core, 8 pytest-asyncio, 9 pytestCheckHook, 10 pythonOlder, 11}: 12 13buildPythonPackage rec { 14 pname = "aioweenect"; 15 version = "1.1.1"; 16 format = "pyproject"; 17 18 disabled = pythonOlder "3.8"; 19 20 src = fetchFromGitHub { 21 owner = "eifinger"; 22 repo = pname; 23 rev = "refs/tags/v${version}"; 24 hash = "sha256-9CYdOUPCt4TkepVuVJHMZngFHyCLFwVvik1xDnfneEc="; 25 }; 26 27 postPatch = '' 28 substituteInPlace pyproject.toml \ 29 --replace "--cov --cov-report term-missing --cov-report xml --cov=aioweenect tests" "" 30 ''; 31 32 nativeBuildInputs = [ poetry-core ]; 33 34 propagatedBuildInputs = [ aiohttp ]; 35 36 nativeCheckInputs = [ 37 aresponses 38 pytest-asyncio 39 pytestCheckHook 40 ]; 41 42 pythonImportsCheck = [ "aioweenect" ]; 43 44 meta = with lib; { 45 description = "Library for the weenect API"; 46 homepage = "https://github.com/eifinger/aioweenect"; 47 license = with licenses; [ mit ]; 48 maintainers = with maintainers; [ fab ]; 49 }; 50}