1{
2 lib,
3 python3Packages,
4 fetchPypi,
5}:
6
7python3Packages.buildPythonApplication rec {
8 pname = "csvkit";
9 version = "2.1.0";
10 pyproject = true;
11
12 src = fetchPypi {
13 inherit pname version;
14 hash = "sha256-uR6PWkhYiMPFFbFcwlJc5L5c/NT0dm6tgxE+eHtf1TY=";
15 };
16
17 build-system = with python3Packages; [ setuptools ];
18
19 dependencies = with python3Packages; [
20 agate
21 agate-excel
22 agate-dbf
23 agate-sql
24 setuptools # csvsql imports pkg_resources
25 ];
26
27 nativeCheckInputs = with python3Packages; [ pytestCheckHook ];
28
29 pythonImportsCheck = [ "csvkit" ];
30
31 disabledTests = [
32 # Tries to compare CLI output - and fails!
33 "test_decimal_format"
34 ];
35
36 meta = {
37 homepage = "https://github.com/wireservice/csvkit";
38 description = "Suite of command-line tools for converting to and working with CSV";
39 changelog = "https://github.com/wireservice/csvkit/blob/${version}/CHANGELOG.rst";
40 license = lib.licenses.mit;
41 maintainers = with lib.maintainers; [ ];
42 };
43}