depot/third_party/nixpkgs/pkgs/development/python-modules/aiocsv/default.nix
Default email c7e6337bd0 Project import generated by Copybara.
GitOrigin-RevId: 08e4dc3a907a6dfec8bb3bbf1540d8abbffea22b
2023-04-29 12:46:19 -04:00

54 lines
947 B
Nix

{ lib
, aiofiles
, buildPythonPackage
, cython
, fetchFromGitHub
, pytest-asyncio
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "aiocsv";
version = "1.2.4";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "MKuranowski";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-R9gZqiHYKexXXjbAkKu9YqhZnzC/VAMSDzBYT/mF5v0=";
};
nativeBuildInputs = [
cython
];
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 ];
};
}