2023-03-04 12:14:45 +00:00
|
|
|
{ lib
|
|
|
|
, python3
|
2023-07-15 17:15:38 +00:00
|
|
|
, fetchPypi
|
2023-03-04 12:14:45 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-03-15 16:39:30 +00:00
|
|
|
let
|
|
|
|
python = python3.override {
|
|
|
|
packageOverrides = self: super: {
|
2024-01-13 08:15:51 +00:00
|
|
|
sqlalchemy = super.sqlalchemy_1_4;
|
2023-03-15 16:39:30 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
in
|
|
|
|
python.pkgs.buildPythonApplication rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "csvkit";
|
2023-03-04 12:14:45 +00:00
|
|
|
version = "1.1.1";
|
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
src = fetchPypi {
|
2020-04-24 23:36:52 +00:00
|
|
|
inherit pname version;
|
2023-03-04 12:14:45 +00:00
|
|
|
hash = "sha256-vt23t49rIq2+1urVrV3kv7Md0sVfMhGyorO2VSkEkiM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-03-15 16:39:30 +00:00
|
|
|
propagatedBuildInputs = with python.pkgs; [
|
2020-04-24 23:36:52 +00:00
|
|
|
agate
|
|
|
|
agate-excel
|
|
|
|
agate-dbf
|
2020-09-25 04:45:31 +00:00
|
|
|
agate-sql
|
2023-07-15 17:15:38 +00:00
|
|
|
setuptools # csvsql imports pkg_resources
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2023-03-15 16:39:30 +00:00
|
|
|
nativeCheckInputs = with python.pkgs; [
|
2021-03-09 03:18:52 +00:00
|
|
|
pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"csvkit"
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# Test is comparing CLI output
|
|
|
|
"test_decimal_format"
|
|
|
|
];
|
2021-03-09 03:18:52 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
2023-03-04 12:14:45 +00:00
|
|
|
changelog = "https://github.com/wireservice/csvkit/blob/${version}/CHANGELOG.rst";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A suite of command-line tools for converting to and working with CSV";
|
|
|
|
homepage = "https://github.com/wireservice/csvkit";
|
2023-03-04 12:14:45 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ vrthra ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|