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