blob: f4697daee6c8760d97b8e5eda682842c911e5bb8 (
plain) (
blame)
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
47
48
49
50
51
52
53
54
55
56
57
58
|
{
lib,
aiofiles,
buildPythonPackage,
cython,
fetchFromGitHub,
pytest-asyncio,
pytestCheckHook,
pythonOlder,
setuptools,
typing-extensions,
}:
buildPythonPackage rec {
pname = "aiocsv";
version = "1.3.2";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "MKuranowski";
repo = "aiocsv";
rev = "refs/tags/v${version}";
hash = "sha256-NnRLBXvQj25dSHc8ZnUaPT8Oiy2EyHLIb8IJPQliyPg=";
};
build-system = [
cython
setuptools
];
dependencies = [ typing-extensions ];
nativeCheckInputs = [
aiofiles
pytest-asyncio
pytestCheckHook
];
preBuild = ''
export CYTHONIZE=1
'';
pythonImportsCheck = [ "aiocsv" ];
disabledTestPaths = [
# Import issue
"tests/test_parser.py"
];
meta = with lib; {
description = "Library for for asynchronous CSV reading/writing";
homepage = "https://github.com/MKuranowski/aiocsv";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}
|