otadump: init at 0.1.2 (#329129)
[NixPkgs.git] / pkgs / development / python-modules / caio / default.nix
blob936fcaf3e95e9b0fc37060cff079a5eb21c034a2
2   lib,
3   stdenv,
4   aiomisc,
5   buildPythonPackage,
6   fetchFromGitHub,
7   pytest-aiohttp,
8   pytestCheckHook,
9   pythonOlder,
10   setuptools,
13 buildPythonPackage rec {
14   pname = "caio";
15   version = "0.9.17";
16   pyproject = true;
18   disabled = pythonOlder "3.7";
20   src = fetchFromGitHub {
21     owner = "mosquito";
22     repo = "caio";
23     rev = "refs/tags/${version}";
24     hash = "sha256-aTJ02dCLb3CsT6KmJxkmOzwtg5nuXeBwz+mT7ZTTU9o=";
25   };
27   build-system = [ setuptools ];
29   nativeCheckInputs = [
30     aiomisc
31     pytest-aiohttp
32     pytestCheckHook
33   ];
35   env.NIX_CFLAGS_COMPILE = toString (
36     lib.optionals stdenv.cc.isClang [ "-Wno-error=implicit-function-declaration" ]
37   );
39   pythonImportsCheck = [ "caio" ];
41   meta = with lib; {
42     description = "File operations with asyncio support";
43     homepage = "https://github.com/mosquito/caio";
44     changelog = "https://github.com/mosquito/caio/releases/tag/${version}";
45     license = licenses.asl20;
46     maintainers = with maintainers; [ fab ];
47   };