evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / pyipp / default.nix
blobe3d051ab07d96ced1933a771cdb8eeb2371cd102
2   lib,
3   aiohttp,
4   aresponses,
5   async-timeout,
6   awesomeversion,
7   backoff,
8   buildPythonPackage,
9   deepmerge,
10   fetchFromGitHub,
11   poetry-core,
12   pytest-asyncio,
13   pytestCheckHook,
14   pythonOlder,
15   syrupy,
16   yarl,
19 buildPythonPackage rec {
20   pname = "pyipp";
21   version = "0.17.0";
22   pyproject = true;
24   disabled = pythonOlder "3.9";
26   src = fetchFromGitHub {
27     owner = "ctalkington";
28     repo = "python-ipp";
29     rev = "refs/tags/${version}";
30     hash = "sha256-B3x6WkTSTGlZWMAK2BTA2EVVz+IvB3QL+arZGBAkZsE=";
31   };
33   postPatch = ''
34     substituteInPlace pyproject.toml \
35       --replace-fail 'version = "0.0.0"' 'version = "${version}"' \
36       --replace-fail "--cov" ""
37   '';
39   build-system = [ poetry-core ];
41   dependencies = [
42     aiohttp
43     awesomeversion
44     backoff
45     deepmerge
46     yarl
47   ] ++ lib.optionals (pythonOlder "3.11") [ async-timeout ];
49   nativeCheckInputs = [
50     aresponses
51     pytest-asyncio
52     pytestCheckHook
53     syrupy
54   ];
56   __darwinAllowLocalNetworking = true;
58   pythonImportsCheck = [ "pyipp" ];
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   };