about summary refs log tree commit diff
path: root/pkgs/tools/misc/sqlite3-to-mysql
diff options
context:
space:
mode:
authorFlorian Brandes <florian.brandes@posteo.de>2022-11-13 20:13:15 +0100
committerFlorian Brandes <florian.brandes@posteo.de>2022-11-13 20:18:24 +0100
commitba3f3b73ad1a4ef881936ee0a3ebb3e745d2760a (patch)
treeaa4d877239b0738c7fadfd71c4091e042e39b477 /pkgs/tools/misc/sqlite3-to-mysql
parentf7d11c70b49c8155e9ed9d7e5a9b3b0c86507849 (diff)
sqlite3-to-mysql: init at 1.4.16
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
Diffstat (limited to 'pkgs/tools/misc/sqlite3-to-mysql')
-rw-r--r--pkgs/tools/misc/sqlite3-to-mysql/default.nix50
1 files changed, 50 insertions, 0 deletions
diff --git a/pkgs/tools/misc/sqlite3-to-mysql/default.nix b/pkgs/tools/misc/sqlite3-to-mysql/default.nix
new file mode 100644
index 0000000000000..cb16a93dd207c
--- /dev/null
+++ b/pkgs/tools/misc/sqlite3-to-mysql/default.nix
@@ -0,0 +1,50 @@
+{ lib
+, fetchFromGitHub
+, python3Packages
+, nixosTests
+}:
+
+python3Packages.buildPythonApplication rec {
+  pname = "sqlite3-to-mysql";
+  version = "1.4.16";
+  format = "setuptools";
+
+  src = fetchFromGitHub {
+    owner = "techouse";
+    repo = pname;
+    rev = "refs/tags/v${version}";
+    hash = "sha256-Fxt1zOyEnBuMkCLCABfijo0514NbFocdsjrQU43qVhY=";
+  };
+
+  propagatedBuildInputs = with python3Packages; [
+    click
+    mysql-connector
+    pytimeparse
+    pymysql
+    pymysqlsa
+    six
+    simplejson
+    sqlalchemy
+    sqlalchemy-utils
+    tqdm
+    tabulate
+    unidecode
+    packaging
+  ];
+
+  # tests require a mysql server instance
+  doCheck = false;
+
+  # run package tests as a seperate nixos test
+  passthru.tests = {
+    nixosTest = nixosTests.sqlite3-to-mysql;
+  };
+
+
+  meta = with lib; {
+    description = "A simple Python tool to transfer data from SQLite 3 to MySQL";
+    homepage = "https://github.com/techouse/sqlite3-to-mysql";
+    license = licenses.mit;
+    maintainers = with maintainers; [ gador ];
+  };
+}