blob: 8960dca9a8d7b0f3ec611d5db4aa0b1bee6541c7 (
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
|
{ lib
, aiofiles
, buildPythonPackage
, cython
, fetchFromGitHub
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
pname = "aiocsv";
version = "1.3.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "MKuranowski";
repo = "aiocsv";
rev = "refs/tags/v${version}";
hash = "sha256-5jMmT7XY+1VNbDNciZS6B/oQJFj4XmGvhDITKWHCuOQ=";
};
nativeBuildInputs = [
cython
setuptools
];
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 ];
};
}
|