mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 00:24:18 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
55 lines
947 B
Nix
55 lines
947 B
Nix
{ lib
|
|
, aiofiles
|
|
, buildPythonPackage
|
|
, cython
|
|
, fetchFromGitHub
|
|
, pytest-asyncio
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aiocsv";
|
|
version = "1.2.3";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "MKuranowski";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-cgPD9JdauPIHOdCNxsWInJWytj4niXozFAzJxKn52bE=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|