8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
54 lines
873 B
Nix
54 lines
873 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, isPy3k
|
|
, pytestrunner
|
|
, click
|
|
, dateparser
|
|
, pandas
|
|
, py-lru-cache
|
|
, six
|
|
, pytest
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "csvs-to-sqlite";
|
|
version = "1.0";
|
|
disabled = !isPy3k;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "simonw";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "0n80y9a6qhbhhbz64jdpscx0nha9jn9nygp9nkgszmw04ri5j5hm";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace pandas~=0.25.0 pandas
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
|
|
}
|