Skip to content

Commit

Permalink
csvkit: move out of pythonPackages
Browse files Browse the repository at this point in the history
From https://csvkit.readthedocs.io/en/1.0.3/index.html:
> csvkit is a suite of *command-line tools* for [...]
  • Loading branch information
Robert Schütz committed Mar 17, 2019
1 parent b1454f5 commit 5e39aa2
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 40 deletions.
38 changes: 0 additions & 38 deletions pkgs/development/python-modules/csvkit/default.nix

This file was deleted.

30 changes: 30 additions & 0 deletions pkgs/tools/text/csvkit/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{ 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;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1250,6 +1250,8 @@ in

crudini = callPackage ../tools/misc/crudini { };

csvkit = callPackage ../tools/text/csvkit { };

cucumber = callPackage ../development/tools/cucumber {};

daemontools = callPackage ../tools/admin/daemontools { };
Expand Down
2 changes: 0 additions & 2 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1195,8 +1195,6 @@ in {

csscompressor = callPackage ../development/python-modules/csscompressor {};

csvkit = callPackage ../development/python-modules/csvkit { };

cufflinks = callPackage ../development/python-modules/cufflinks { };

cupy = callPackage ../development/python-modules/cupy {
Expand Down

0 comments on commit 5e39aa2

Please sign in to comment.