1{ lib 2, aiofiles 3, buildPythonPackage 4, cython 5, fetchFromGitHub 6, pytest-asyncio 7, pytestCheckHook 8, pythonOlder 9}: 10 11buildPythonPackage rec { 12 pname = "aiocsv"; 13 version = "1.2.5"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "MKuranowski"; 20 repo = pname; 21 rev = "refs/tags/v${version}"; 22 hash = "sha256-4QvVYcTpwhFH57r+iMgmYciWIC2prRnL+ih7qx/CA/U="; 23 }; 24 25 nativeBuildInputs = [ 26 cython 27 ]; 28 29 nativeCheckInputs = [ 30 aiofiles 31 pytest-asyncio 32 pytestCheckHook 33 ]; 34 35 preBuild = '' 36 export CYTHONIZE=1 37 ''; 38 39 pythonImportsCheck = [ 40 "aiocsv" 41 ]; 42 43 disabledTestPaths = [ 44 # Import issue 45 "tests/test_parser.py" 46 ]; 47 48 meta = with lib; { 49 description = "Library for for asynchronous CSV reading/writing"; 50 homepage = "https://github.com/MKuranowski/aiocsv"; 51 license = with licenses; [ mit ]; 52 maintainers = with maintainers; [ fab ]; 53 }; 54}