summary refs log tree commit diff
path: root/pkgs/tools/misc/csvs-to-sqlite
diff options
context:
space:
mode:
authorBenjamin Asbach <asbachb@users.noreply.github.com>2021-09-11 19:23:32 -0600
committerBenjamin Asbach <asbachb@users.noreply.github.com>2021-09-14 09:14:33 -0600
commitac74b42351e671d45949341fe5b9dac5bb69f574 (patch)
tree98bb57bd1c5ee54edafbce8b0f74888334ecefc2 /pkgs/tools/misc/csvs-to-sqlite
parent4f6afcb88ad34c2865ab729c0b2b4d944ac7cc9e (diff)
downloadnixpkgs-ac74b42351e671d45949341fe5b9dac5bb69f574.tar
nixpkgs-ac74b42351e671d45949341fe5b9dac5bb69f574.tar.gz
nixpkgs-ac74b42351e671d45949341fe5b9dac5bb69f574.tar.bz2
nixpkgs-ac74b42351e671d45949341fe5b9dac5bb69f574.tar.lz
nixpkgs-ac74b42351e671d45949341fe5b9dac5bb69f574.tar.xz
nixpkgs-ac74b42351e671d45949341fe5b9dac5bb69f574.tar.zst
nixpkgs-ac74b42351e671d45949341fe5b9dac5bb69f574.zip
csvs-to-sqlite: removed from `python-package` since it's an command line application
Diffstat (limited to 'pkgs/tools/misc/csvs-to-sqlite')
-rw-r--r--pkgs/tools/misc/csvs-to-sqlite/default.nix44
1 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/tools/misc/csvs-to-sqlite/default.nix b/pkgs/tools/misc/csvs-to-sqlite/default.nix
new file mode 100644
index 00000000000..ea32471f09c
--- /dev/null
+++ b/pkgs/tools/misc/csvs-to-sqlite/default.nix
@@ -0,0 +1,44 @@
+{ lib
+, buildPythonPackage
+, fetchFromGitHub
+, isPy3k
+, click
+, dateparser
+, pandas
+, py-lru-cache
+, six
+, pytestCheckHook
+}:
+
+buildPythonPackage rec {
+  pname = "csvs-to-sqlite";
+  version = "1.2";
+  disabled = !isPy3k;
+
+  src = fetchFromGitHub {
+    owner = "simonw";
+    repo = pname;
+    rev = version;
+    sha256 = "0p99cg76d3s7jxvigh5ad04dzhmr6g62qzzh4i6h7x9aiyvdhvk4";
+  };
+
+  propagatedBuildInputs = [
+    click
+    dateparser
+    pandas
+    py-lru-cache
+    six
+  ];
+
+  checkInputs = [
+    pytestCheckHook
+  ];
+
+  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 ];
+  };
+
+}