blob: 3ca296b82657251243653c6d95c8c6a3447fc9b6 (
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
|
{
lib,
stdenv,
aiomisc-pytest,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
setuptools,
}:
buildPythonPackage (finalAttrs: {
pname = "caio";
version = "0.9.25";
pyproject = true;
src = fetchFromGitHub {
owner = "mosquito";
repo = "caio";
tag = finalAttrs.version;
hash = "sha256-uKQJWGYtBdpcfFD6yDKjIz0H0FEq4dmCP50sbVGYRGU=";
};
build-system = [ setuptools ];
nativeCheckInputs = [
aiomisc-pytest
pytestCheckHook
];
env.NIX_CFLAGS_COMPILE = toString (
lib.optionals stdenv.cc.isClang [ "-Wno-error=implicit-function-declaration" ]
);
pythonImportsCheck = [ "caio" ];
meta = {
description = "File operations with asyncio support";
homepage = "https://github.com/mosquito/caio";
changelog = "https://github.com/mosquito/caio/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
};
})
|