2020-09-09 09:43:43 +01:00
|
|
|
{ lib, fetchpatch, python3 }:
|
2019-03-16 09:02:11 +00:00
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "csvkit";
|
2020-09-09 09:43:25 +01:00
|
|
|
version = "1.0.5";
|
2019-03-16 09:02:11 +00:00
|
|
|
|
|
|
|
src = python3.pkgs.fetchPypi {
|
|
|
|
inherit pname version;
|
2020-09-09 09:43:25 +01:00
|
|
|
sha256 = "1ffmbzk4rxnl1yhqfl58v7kvl5m9cbvjm8v7xp4mvr00sgs91lvv";
|
2019-03-16 09:02:11 +00:00
|
|
|
};
|
|
|
|
|
2020-09-09 09:43:43 +01:00
|
|
|
patches = [
|
|
|
|
# Fixes a failing dbf related test. Won't be needed on 1.0.6 or later.
|
|
|
|
(fetchpatch{
|
|
|
|
url = "https://github.com/wireservice/csvkit/commit/5f22e664121b13d9ff005a9206873a8f97431dca.patch";
|
|
|
|
sha256 = "1kg00z65x7l6dnm5nfsr5krs8m7mv23hhb1inkaqf5m5fpkpnvv7";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2019-03-16 09:02:11 +00:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
2019-09-13 14:29:32 +01:00
|
|
|
agate
|
|
|
|
agate-excel
|
2020-09-09 09:43:43 +01:00
|
|
|
agate-dbf
|
|
|
|
agate-sql
|
2019-09-13 14:29:32 +01:00
|
|
|
six
|
2019-03-16 09:02:11 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = with python3.pkgs; [
|
2020-09-09 09:43:43 +01:00
|
|
|
nose pytestCheckHook
|
2019-03-16 09:02:11 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A suite of command-line tools for converting to and working with CSV";
|
|
|
|
maintainers = with maintainers; [ vrthra ];
|
|
|
|
license = licenses.mit;
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/wireservice/csvkit";
|
2019-03-16 09:02:11 +00:00
|
|
|
};
|
|
|
|
}
|