at 23.05-pre 1.1 kB view raw
1{ lib 2, aiohttp 3, aresponses 4, awesomeversion 5, backoff 6, buildPythonPackage 7, deepmerge 8, fetchFromGitHub 9, poetry-core 10, pytest-asyncio 11, pytestCheckHook 12, pythonOlder 13, yarl 14}: 15 16buildPythonPackage rec { 17 pname = "pyipp"; 18 version = "0.12.1"; 19 format = "pyproject"; 20 21 disabled = pythonOlder "3.9"; 22 23 src = fetchFromGitHub { 24 owner = "ctalkington"; 25 repo = "python-ipp"; 26 rev = version; 27 hash = "sha256-xTSi5Eh6vVuQ+Kr/oVMlh5YcckVRsfTUgdmGHndmX+Q="; 28 }; 29 30 nativeBuildInputs = [ 31 poetry-core 32 ]; 33 34 propagatedBuildInputs = [ 35 aiohttp 36 awesomeversion 37 backoff 38 deepmerge 39 yarl 40 ]; 41 42 checkInputs = [ 43 aresponses 44 pytest-asyncio 45 pytestCheckHook 46 ]; 47 48 postPatch = '' 49 substituteInPlace pyproject.toml \ 50 --replace 'version = "0.0.0"' 'version = "${version}"' \ 51 --replace " --cov" "" 52 ''; 53 54 pythonImportsCheck = [ 55 "pyipp" 56 ]; 57 58 meta = with lib; { 59 description = "Asynchronous Python client for Internet Printing Protocol (IPP)"; 60 homepage = "https://github.com/ctalkington/python-ipp"; 61 license = licenses.mit; 62 maintainers = with maintainers; [ hexa ]; 63 }; 64}