From ac74b42351e671d45949341fe5b9dac5bb69f574 Mon Sep 17 00:00:00 2001 From: Benjamin Asbach Date: Sat, 11 Sep 2021 19:23:32 -0600 Subject: csvs-to-sqlite: removed from `python-package` since it's an command line application --- pkgs/tools/misc/csvs-to-sqlite/default.nix | 44 ++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 pkgs/tools/misc/csvs-to-sqlite/default.nix (limited to 'pkgs/tools/misc/csvs-to-sqlite') 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 ]; + }; + +} -- cgit 1.4.1