1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, isPy3k
5, pytestrunner
6, click
7, dateparser
8, pandas
9, py-lru-cache
10, six
11, pytest
12}:
13
14buildPythonPackage rec {
15 pname = "csvs-to-sqlite";
16 version = "1.0";
17 disabled = !isPy3k;
18
19 src = fetchFromGitHub {
20 owner = "simonw";
21 repo = pname;
22 rev = version;
23 sha256 = "0n80y9a6qhbhhbz64jdpscx0nha9jn9nygp9nkgszmw04ri5j5hm";
24 };
25
26 propagatedBuildInputs = [
27 click
28 dateparser
29 pandas
30 py-lru-cache
31 six
32 ];
33
34 checkInputs = [
35 pytest
36 ];
37
38 checkPhase = ''
39 pytest
40 '';
41
42 meta = with lib; {
43 description = "Convert CSV files into a SQLite database";
44 homepage = https://github.com/simonw/csvs-to-sqlite;
45 license = licenses.asl20;
46 maintainers = [ maintainers.costrouc ];
47 };
48
49}