nixpkgs/pkgs/tools/text/csvkit/default.nix
Robert Schütz 5e39aa231a csvkit: move out of pythonPackages
From https://csvkit.readthedocs.io/en/1.0.3/index.html:
> csvkit is a suite of *command-line tools* for [...]
2019-03-17 16:11:14 +01:00

31 lines
751 B
Nix

{ lib, python3, glibcLocales }:
python3.pkgs.buildPythonApplication rec {
pname = "csvkit";
version = "1.0.3";
src = python3.pkgs.fetchPypi {
inherit pname version;
sha256 = "a6c859c1321d4697dc41252877249091681297f093e08d9c1e1828a6d52c260c";
};
propagatedBuildInputs = with python3.pkgs; [
agate agate-excel agate-dbf agate-sql six
];
checkInputs = with python3.pkgs; [
glibcLocales nose
];
checkPhase = ''
LC_ALL="en_US.UTF-8" nosetests -e test_csvsql
'';
meta = with lib; {
description = "A suite of command-line tools for converting to and working with CSV";
maintainers = with maintainers; [ vrthra ];
license = licenses.mit;
homepage = https://github.com/wireservice/csvkit;
};
}