blob: 3314e6242dceeca570bcc7dc4131de0b3711bbec (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
{ lib
, stdenv
, aiomisc
, buildPythonPackage
, fetchFromGitHub
, pytest-aiohttp
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "caio";
version = "0.9.13";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "mosquito";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-Q87NuL6yZ5uKImQqqdKTMWNyfUOb4NaZDEvNdqZbHDk=";
};
nativeCheckInputs = [
aiomisc
pytest-aiohttp
pytestCheckHook
];
env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.cc.isClang [
"-Wno-error=implicit-function-declaration"
]);
pythonImportsCheck = [
"caio"
];
meta = with lib; {
description = "File operations with asyncio support";
homepage = "https://github.com/mosquito/caio";
changelog = "https://github.com/mosquito/caio/releases/tag/${version}";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}
|