biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / aiohttp-zlib-ng / default.nix
blob73ab81fa78a81e0a880dc98b82a7f2c9da843b03
2   lib,
3   aiohttp,
4   buildPythonPackage,
5   fetchFromGitHub,
6   poetry-core,
7   pytestCheckHook,
8   pythonOlder,
9   zlib-ng,
12 buildPythonPackage rec {
13   pname = "aiohttp-zlib-ng";
14   version = "0.3.2";
15   pyproject = true;
17   disabled = pythonOlder "3.8";
19   src = fetchFromGitHub {
20     owner = "bdraco";
21     repo = "aiohttp-zlib-ng";
22     rev = "refs/tags/v${version}";
23     hash = "sha256-SiDDtadbBnw67lnqadAVSkHILB/8Sur0MfjgCbndX4o=";
24   };
26   postPatch = ''
27     substituteInPlace pyproject.toml \
28       --replace-fail " --cov=aiohttp_zlib_ng --cov-report=term-missing:skip-covered" ""
29   '';
31   nativeBuildInputs = [ poetry-core ];
33   propagatedBuildInputs = [
34     aiohttp
35     zlib-ng
36   ];
38   nativeCheckInputs = [ pytestCheckHook ];
40   pythonImportsCheck = [ "aiohttp_zlib_ng" ];
42   meta = with lib; {
43     description = "Enable zlib_ng on aiohttp";
44     homepage = "https://github.com/bdraco/aiohttp-zlib-ng";
45     changelog = "https://github.com/bdraco/aiohttp-zlib-ng/blob/${version}/CHANGELOG.md";
46     license = licenses.asl20;
47     maintainers = with maintainers; [ fab ];
48   };