Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at gcc-offload 53 lines 1.1 kB view raw
1{ 2 lib, 3 aiohttp, 4 aresponses, 5 buildPythonPackage, 6 fetchFromGitHub, 7 hatchling, 8 pytest-asyncio, 9 pytestCheckHook, 10 pythonOlder, 11}: 12 13buildPythonPackage rec { 14 pname = "aioweenect"; 15 version = "1.1.5"; 16 pyproject = true; 17 18 disabled = pythonOlder "3.9"; 19 20 src = fetchFromGitHub { 21 owner = "eifinger"; 22 repo = "aioweenect"; 23 rev = "refs/tags/v${version}"; 24 hash = "sha256-2qTjRXQdTExqY5/ckB6UrkmavzjZK/agfL9+o6fXS0M="; 25 }; 26 27 postPatch = '' 28 substituteInPlace pyproject.toml \ 29 --replace-fail "--cov --cov-report term-missing --cov=src/aioweenect --asyncio-mode=auto" "" 30 ''; 31 32 pythonRelaxDeps = [ "aiohttp" ]; 33 34 build-system = [ hatchling ]; 35 36 dependencies = [ aiohttp ]; 37 38 nativeCheckInputs = [ 39 aresponses 40 pytest-asyncio 41 pytestCheckHook 42 ]; 43 44 pythonImportsCheck = [ "aioweenect" ]; 45 46 meta = with lib; { 47 description = "Library for the weenect API"; 48 homepage = "https://github.com/eifinger/aioweenect"; 49 changelog = "https://github.com/eifinger/aioweenect/releases/tag/v${version}"; 50 license = with licenses; [ mit ]; 51 maintainers = with maintainers; [ fab ]; 52 }; 53}