2019-05-07 12:49:05 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2019-09-17 14:25:09 +00:00
|
|
|
, isPy3k
|
2019-05-07 12:49:05 +00:00
|
|
|
, pytestrunner
|
|
|
|
, click
|
|
|
|
, dateparser
|
|
|
|
, pandas
|
|
|
|
, py-lru-cache
|
|
|
|
, six
|
|
|
|
, pytest
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "csvs-to-sqlite";
|
2019-09-17 14:25:09 +00:00
|
|
|
version = "1.0";
|
|
|
|
disabled = !isPy3k;
|
2019-05-07 12:49:05 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "simonw";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2019-09-17 14:25:09 +00:00
|
|
|
sha256 = "0n80y9a6qhbhhbz64jdpscx0nha9jn9nygp9nkgszmw04ri5j5hm";
|
2019-05-07 12:49:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
click
|
|
|
|
dateparser
|
|
|
|
pandas
|
|
|
|
py-lru-cache
|
|
|
|
six
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytest
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
pytest
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Convert CSV files into a SQLite database";
|
|
|
|
homepage = https://github.com/simonw/csvs-to-sqlite;
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|