2023-03-02 10:42:29 +00:00
|
|
|
{ lib
|
|
|
|
, python3
|
2023-05-25 17:03:52 +01:00
|
|
|
, fetchPypi
|
2023-03-02 10:42:29 +00:00
|
|
|
}:
|
2019-03-16 09:02:11 +00:00
|
|
|
|
2023-03-09 15:41:05 +00:00
|
|
|
let
|
2019-03-16 09:02:11 +00:00
|
|
|
pname = "csvkit";
|
2024-02-14 11:03:01 +00:00
|
|
|
version = "1.4.0";
|
2024-02-04 22:06:55 +00:00
|
|
|
pythonEnv = python3;
|
|
|
|
in
|
|
|
|
pythonEnv.pkgs.buildPythonApplication {
|
|
|
|
inherit pname version;
|
|
|
|
pyproject = true;
|
2019-03-16 09:02:11 +00:00
|
|
|
|
2023-05-25 17:03:52 +01:00
|
|
|
src = fetchPypi {
|
2019-03-16 09:02:11 +00:00
|
|
|
inherit pname version;
|
2024-02-14 11:03:01 +00:00
|
|
|
hash = "sha256-LP7EM2egXMXl35nJCZC5WmNtjPmEukbOePzuj/ynr/g=";
|
2019-03-16 09:02:11 +00:00
|
|
|
};
|
|
|
|
|
2024-02-04 22:06:55 +00:00
|
|
|
propagatedBuildInputs = with pythonEnv.pkgs; [
|
2019-09-13 14:29:32 +01:00
|
|
|
agate
|
|
|
|
agate-excel
|
2020-09-09 09:43:43 +01:00
|
|
|
agate-dbf
|
|
|
|
agate-sql
|
2023-05-02 06:30:05 +01:00
|
|
|
setuptools # csvsql imports pkg_resources
|
2019-03-16 09:02:11 +00:00
|
|
|
];
|
|
|
|
|
2024-02-04 22:06:55 +00:00
|
|
|
nativeCheckInputs = with pythonEnv.pkgs; [
|
2021-03-07 14:52:22 +00:00
|
|
|
pytestCheckHook
|
2019-03-16 09:02:11 +00:00
|
|
|
];
|
|
|
|
|
2023-03-02 10:42:29 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"csvkit"
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
2024-02-04 22:06:55 +00:00
|
|
|
# Tries to compare CLI output - and fails!
|
2023-03-02 10:42:29 +00:00
|
|
|
"test_decimal_format"
|
|
|
|
];
|
2021-03-07 14:52:22 +00:00
|
|
|
|
2024-02-04 22:06:55 +00:00
|
|
|
meta = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/wireservice/csvkit";
|
2024-02-04 22:06:55 +00:00
|
|
|
description = "A suite of command-line tools for converting to and working with CSV";
|
|
|
|
changelog = "https://github.com/wireservice/csvkit/blob/${version}/CHANGELOG.rst";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ AndersonTorres ];
|
2019-03-16 09:02:11 +00:00
|
|
|
};
|
|
|
|
}
|