Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
48 lines
1,018 B
Nix
48 lines
1,018 B
Nix
{ lib
|
|
, python3
|
|
, fetchPypi
|
|
}:
|
|
|
|
let
|
|
pname = "csvkit";
|
|
version = "2.0.1";
|
|
pythonEnv = python3;
|
|
in
|
|
pythonEnv.pkgs.buildPythonApplication {
|
|
inherit pname version;
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-qpRgJm1XE/8xKkFO0+3Ybgw6MdqbLidYy+VkP+EUbdE=";
|
|
};
|
|
|
|
propagatedBuildInputs = with pythonEnv.pkgs; [
|
|
agate
|
|
agate-excel
|
|
agate-dbf
|
|
agate-sql
|
|
setuptools # csvsql imports pkg_resources
|
|
];
|
|
|
|
nativeCheckInputs = with pythonEnv.pkgs; [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"csvkit"
|
|
];
|
|
|
|
disabledTests = [
|
|
# Tries to compare CLI output - and fails!
|
|
"test_decimal_format"
|
|
];
|
|
|
|
meta = {
|
|
homepage = "https://github.com/wireservice/csvkit";
|
|
description = "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 ];
|
|
};
|
|
}
|