mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
csvkit: refactor
This commit is contained in:
parent
14d951c46f
commit
5762985302
2 changed files with 29 additions and 23 deletions
28
pkgs/development/python-modules/csvkit/default.nix
Normal file
28
pkgs/development/python-modules/csvkit/default.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{ stdenv, fetchPypi, buildPythonPackage,
|
||||
dateutil, dbf, xlrd, sqlalchemy, openpyxl,
|
||||
agate-excel, agate-dbf, agate-sql, isPy3k }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
name = "${pname}-${version}";
|
||||
pname = "csvkit";
|
||||
version = "1.0.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "05vfsba9nwh4islszgs18rq8sjkpzqni0cdwvvkw7pi0r63pz2as";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ dateutil dbf xlrd sqlalchemy openpyxl
|
||||
agate-excel agate-dbf agate-sql ];
|
||||
|
||||
doCheck = !isPy3k;
|
||||
# (only) python 3 we had 9 failures and 57 errors out of a much larger
|
||||
# number of tests.
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A library of utilities for working with CSV, the king of tabular file formats";
|
||||
maintainers = with maintainers; [ vrthra ];
|
||||
license = with licenses; [ mit ];
|
||||
homepage = https://github.com/wireservice/csvkit;
|
||||
};
|
||||
}
|
|
@ -2433,29 +2433,7 @@ in {
|
|||
|
||||
csscompressor = callPackage ../development/python-modules/csscompressor.nix {};
|
||||
|
||||
csvkit = buildPythonPackage rec {
|
||||
name = "csvkit-${version}";
|
||||
version = "1.0.2";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "mirror://pypi/c/csvkit/${name}.tar.gz";
|
||||
sha256 = "05vfsba9nwh4islszgs18rq8sjkpzqni0cdwvvkw7pi0r63pz2as";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = with self; [ dateutil dbf xlrd sqlalchemy openpyxl
|
||||
agate-excel agate-dbf agate-sql ];
|
||||
|
||||
doCheck = false;
|
||||
# (only) python 3 we had 9 failures and 57 errors out of a much larger
|
||||
# number of tests.
|
||||
|
||||
meta = {
|
||||
description = "A library of utilities for working with CSV, the king of tabular file formats";
|
||||
maintainers = with maintainers; [ vrthra ];
|
||||
license = licenses.mit;
|
||||
homepage = "https://github.com/wireservice/csvkit";
|
||||
};
|
||||
};
|
||||
csvkit = callPackage ../development/python-modules/csvkit { };
|
||||
|
||||
cx_Freeze = buildPythonPackage rec {
|
||||
name = "cx_freeze-${version}";
|
||||
|
|
Loading…
Reference in a new issue