nixpkgs/pkgs/development/python-modules/aiocsv/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

59 lines
1.0 KiB
Nix
Raw Normal View History

{
lib,
aiofiles,
buildPythonPackage,
cython,
fetchFromGitHub,
pytest-asyncio,
pytestCheckHook,
pythonOlder,
setuptools,
typing-extensions,
}:
buildPythonPackage rec {
pname = "aiocsv";
version = "1.3.2";
2024-02-21 19:26:20 +00:00
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "MKuranowski";
2024-02-21 19:26:20 +00:00
repo = "aiocsv";
rev = "refs/tags/v${version}";
hash = "sha256-NnRLBXvQj25dSHc8ZnUaPT8Oiy2EyHLIb8IJPQliyPg=";
};
2024-04-28 17:53:12 +00:00
build-system = [
cython
2024-02-21 19:26:20 +00:00
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 ];
};
}