2019-05-07 13:49:05 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2019-09-17 15:25:09 +01:00
|
|
|
, isPy3k
|
2019-05-07 13:49:05 +01:00
|
|
|
, click
|
|
|
|
, dateparser
|
|
|
|
, pandas
|
|
|
|
, py-lru-cache
|
|
|
|
, six
|
2021-02-15 22:04:15 +00:00
|
|
|
, pytestCheckHook
|
2019-05-07 13:49:05 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "csvs-to-sqlite";
|
2020-12-07 13:33:31 +00:00
|
|
|
version = "1.2";
|
2019-09-17 15:25:09 +01:00
|
|
|
disabled = !isPy3k;
|
2019-05-07 13:49:05 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "simonw";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2020-12-07 13:33:31 +00:00
|
|
|
sha256 = "0p99cg76d3s7jxvigh5ad04dzhmr6g62qzzh4i6h7x9aiyvdhvk4";
|
2019-05-07 13:49:05 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
click
|
|
|
|
dateparser
|
|
|
|
pandas
|
|
|
|
py-lru-cache
|
|
|
|
six
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
2021-02-15 22:04:15 +00:00
|
|
|
pytestCheckHook
|
2019-05-07 13:49:05 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Convert CSV files into a SQLite database";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/simonw/csvs-to-sqlite";
|
2019-05-07 13:49:05 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|