From 12c06b029004f18d0d4843d0a39f3060ac77a651 Mon Sep 17 00:00:00 2001 From: Florian Brandes Date: Tue, 23 Jul 2024 07:58:38 +0200 Subject: [PATCH 1/2] sqlite3-to-mysql: 2.2.0 -> 2.2.1 Signed-off-by: Florian Brandes --- pkgs/tools/misc/sqlite3-to-mysql/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/misc/sqlite3-to-mysql/default.nix b/pkgs/tools/misc/sqlite3-to-mysql/default.nix index f2bc903d3d58..195e4c267f7e 100644 --- a/pkgs/tools/misc/sqlite3-to-mysql/default.nix +++ b/pkgs/tools/misc/sqlite3-to-mysql/default.nix @@ -9,7 +9,7 @@ python3Packages.buildPythonApplication rec { pname = "sqlite3-to-mysql"; - version = "2.2.0"; + version = "2.2.1"; format = "pyproject"; disabled = python3Packages.pythonOlder "3.8"; @@ -18,7 +18,7 @@ python3Packages.buildPythonApplication rec { owner = "techouse"; repo = pname; rev = "refs/tags/v${version}"; - hash = "sha256-oav5HJdTmSAKk1b0wpzU2UOoY53zh5BrQ3Q0N360NeQ="; + hash = "sha256-pdPKP6Z4rOHUzxrfTft7ykWpCQBHN+FfndafXHyL+0Y="; }; nativeBuildInputs = with python3Packages; [ @@ -39,6 +39,8 @@ python3Packages.buildPythonApplication rec { unidecode packaging mysql80 + python-dateutil + types-python-dateutil ]; pythonRelaxDeps = [ From df43c66a753f7608fba5f125328b0912a2f4ba9d Mon Sep 17 00:00:00 2001 From: Florian Brandes Date: Tue, 23 Jul 2024 08:03:03 +0200 Subject: [PATCH 2/2] sqlite3-to-mysql: refactor to new PEP build standard Signed-off-by: Florian Brandes --- pkgs/tools/misc/sqlite3-to-mysql/default.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkgs/tools/misc/sqlite3-to-mysql/default.nix b/pkgs/tools/misc/sqlite3-to-mysql/default.nix index 195e4c267f7e..feacf796caaa 100644 --- a/pkgs/tools/misc/sqlite3-to-mysql/default.nix +++ b/pkgs/tools/misc/sqlite3-to-mysql/default.nix @@ -16,16 +16,16 @@ python3Packages.buildPythonApplication rec { src = fetchFromGitHub { owner = "techouse"; - repo = pname; + repo = "sqlite3-to-mysql"; rev = "refs/tags/v${version}"; hash = "sha256-pdPKP6Z4rOHUzxrfTft7ykWpCQBHN+FfndafXHyL+0Y="; }; - nativeBuildInputs = with python3Packages; [ + build-system = with python3Packages; [ hatchling ]; - propagatedBuildInputs = with python3Packages; [ + dependencies = with python3Packages; [ click mysql-connector pytimeparse2 @@ -59,11 +59,11 @@ python3Packages.buildPythonApplication rec { }; }; - meta = with lib; { + meta = { description = "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 ]; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ gador ]; mainProgram = "sqlite3mysql"; }; }