Skip to content

Commit

Permalink
Merge pull request NixOS#57745 from dotlambda/csvkit-no-library
Browse files Browse the repository at this point in the history
 csvkit: move out of pythonPackages
  • Loading branch information
dotlambda authored Mar 18, 2019
2 parents c94f6f2 + 5e39aa2 commit 8ec6905
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 54 deletions.
35 changes: 21 additions & 14 deletions pkgs/development/python-modules/agate-excel/default.nix
Original file line number Diff line number Diff line change
@@ -1,21 +1,28 @@
{ stdenv, fetchPypi, buildPythonPackage, agate, openpyxl, xlrd }:
{ lib, fetchPypi, fetchpatch, buildPythonPackage
, agate, openpyxl, xlrd, nose
}:

buildPythonPackage rec {
pname = "agate-excel";
version = "0.2.2";
pname = "agate-excel";
version = "0.2.3";

src = fetchPypi {
inherit pname version;
sha256 = "8923f71ee2b5b7b21e52fb314a769b28fb902f647534f5cbbb41991d8710f4c7";
};
src = fetchPypi {
inherit pname version;
sha256 = "8f255ef2c87c436b7132049e1dd86c8e08bf82d8c773aea86f3069b461a17d52";
};

propagatedBuildInputs = [ agate openpyxl xlrd ];
propagatedBuildInputs = [ agate openpyxl xlrd ];

meta = with stdenv.lib; {
description = "Adds read support for excel files to agate";
homepage = "https://github.com/wireservice/agate-excel";
license = licenses.mit;
maintainers = with maintainers; [ vrthra ];
};
checkInputs = [ nose ];

checkPhase = ''
nosetests
'';

meta = with lib; {
description = "Adds read support for excel files to agate";
homepage = https://github.com/wireservice/agate-excel;
license = licenses.mit;
maintainers = with maintainers; [ vrthra ];
};
}
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 @@ -1256,6 +1256,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 8ec6905

Please sign in to comment.