Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 aiofiles, 4 buildPythonPackage, 5 cython, 6 fetchFromGitHub, 7 pytest-asyncio, 8 pytestCheckHook, 9 pythonOlder, 10 setuptools, 11 typing-extensions, 12}: 13 14buildPythonPackage rec { 15 pname = "aiocsv"; 16 version = "1.3.2"; 17 pyproject = true; 18 19 disabled = pythonOlder "3.7"; 20 21 src = fetchFromGitHub { 22 owner = "MKuranowski"; 23 repo = "aiocsv"; 24 rev = "refs/tags/v${version}"; 25 hash = "sha256-NnRLBXvQj25dSHc8ZnUaPT8Oiy2EyHLIb8IJPQliyPg="; 26 }; 27 28 build-system = [ 29 cython 30 setuptools 31 ]; 32 33 dependencies = [ typing-extensions ]; 34 35 nativeCheckInputs = [ 36 aiofiles 37 pytest-asyncio 38 pytestCheckHook 39 ]; 40 41 preBuild = '' 42 export CYTHONIZE=1 43 ''; 44 45 pythonImportsCheck = [ "aiocsv" ]; 46 47 disabledTestPaths = [ 48 # Import issue 49 "tests/test_parser.py" 50 ]; 51 52 meta = with lib; { 53 description = "Library for for asynchronous CSV reading/writing"; 54 homepage = "https://github.com/MKuranowski/aiocsv"; 55 license = with licenses; [ mit ]; 56 maintainers = with maintainers; [ fab ]; 57 }; 58}