mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 16:53:21 +00:00
49 lines
1020 B
Nix
49 lines
1020 B
Nix
{ lib
|
|
, python3
|
|
, fetchPypi
|
|
}:
|
|
|
|
let
|
|
pname = "csvkit";
|
|
version = "1.5.0";
|
|
pythonEnv = python3;
|
|
in
|
|
pythonEnv.pkgs.buildPythonApplication {
|
|
inherit pname version;
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-lnqL6PxY7fViEiW1pqaXsOhzC5YupoCFkWqRhgsiIRw=";
|
|
};
|
|
|
|
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 = "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 ];
|
|
};
|
|
}
|