nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 aiomisc-pytest,
5 buildPythonPackage,
6 fetchFromGitHub,
7 pytestCheckHook,
8 setuptools,
9}:
10
11buildPythonPackage (finalAttrs: {
12 pname = "caio";
13 version = "0.9.25";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "mosquito";
18 repo = "caio";
19 tag = finalAttrs.version;
20 hash = "sha256-uKQJWGYtBdpcfFD6yDKjIz0H0FEq4dmCP50sbVGYRGU=";
21 };
22
23 build-system = [ setuptools ];
24
25 nativeCheckInputs = [
26 aiomisc-pytest
27 pytestCheckHook
28 ];
29
30 env.NIX_CFLAGS_COMPILE = toString (
31 lib.optionals stdenv.cc.isClang [ "-Wno-error=implicit-function-declaration" ]
32 );
33
34 pythonImportsCheck = [ "caio" ];
35
36 meta = {
37 description = "File operations with asyncio support";
38 homepage = "https://github.com/mosquito/caio";
39 changelog = "https://github.com/mosquito/caio/releases/tag/${finalAttrs.src.tag}";
40 license = lib.licenses.asl20;
41 maintainers = with lib.maintainers; [ fab ];
42 };
43})