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.14.4";
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-xE0fdT+Ffdf4iOHWZzRa7YWtHt92lFdA/sbwjblMR40=";
28 };
29
30 postPatch = ''
31 substituteInPlace pyproject.toml \
32 --replace 'version = "0.0.0"' 'version = "${version}"' \
33 --replace "--cov" ""
34 '';
35
36 nativeBuildInputs = [
37 poetry-core
38 ];
39
40 propagatedBuildInputs = [
41 aiohttp
42 awesomeversion
43 backoff
44 deepmerge
45 yarl
46 ];
47
48 nativeCheckInputs = [
49 aresponses
50 pytest-asyncio
51 pytestCheckHook
52 ];
53
54 __darwinAllowLocalNetworking = true;
55
56 pythonImportsCheck = [
57 "pyipp"
58 ];
59
60 meta = with lib; {
61 changelog = "https://github.com/ctalkington/python-ipp/releases/tag/${version}";
62 description = "Asynchronous Python client for Internet Printing Protocol (IPP)";
63 homepage = "https://github.com/ctalkington/python-ipp";
64 license = licenses.mit;
65 maintainers = with maintainers; [ hexa ];
66 };
67}