nixpkgs/pkgs/tools/misc/sqlite3-to-mysql/default.nix
Florian Brandes ba3f3b73ad
sqlite3-to-mysql: init at 1.4.16
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
2022-11-13 20:18:24 +01:00

51 lines
1.0 KiB
Nix

{ 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 ];
};
}