Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 49 lines 992 B view raw
1{ lib 2, aiohttp 3, aresponses 4, asynctest 5, buildPythonPackage 6, fetchFromGitHub 7, poetry-core 8, pytest-aiohttp 9, pytest-asyncio 10, pytest-cov 11, pytestCheckHook 12}: 13 14buildPythonPackage rec { 15 pname = "pyopenuv"; 16 version = "2.0.2"; 17 format = "pyproject"; 18 19 src = fetchFromGitHub { 20 owner = "bachya"; 21 repo = pname; 22 rev = version; 23 sha256 = "sha256-QVgNwu/NXSV9nbRN0POBCdKCv6xdp4uSEzFAiHkhVaQ="; 24 }; 25 26 nativeBuildInputs = [ poetry-core ]; 27 28 propagatedBuildInputs = [ aiohttp ]; 29 30 checkInputs = [ 31 aresponses 32 asynctest 33 pytest-asyncio 34 pytest-aiohttp 35 pytest-cov 36 pytestCheckHook 37 ]; 38 39 # Ignore the examples as they are prefixed with test_ 40 pytestFlagsArray = [ "--ignore examples/" ]; 41 pythonImportsCheck = [ "pyopenuv" ]; 42 43 meta = with lib; { 44 description = "Python API to retrieve data from openuv.io"; 45 homepage = "https://github.com/bachya/pyopenuv"; 46 license = with licenses; [ mit ]; 47 maintainers = with maintainers; [ fab ]; 48 }; 49}