depot/third_party/nixpkgs/pkgs/development/python-modules/aiocsv/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

58 lines
1 KiB
Nix

{
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 ];
};
}