depot/third_party/nixpkgs/pkgs/tools/misc/sqlite3-to-mysql/default.nix
Default email 7d542a9f98 Project import generated by Copybara.
GitOrigin-RevId: b72b8b94cf0c012b0252a9100a636cad69696666
2022-12-02 08:20:57 +00:00

50 lines
1 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 ];
};
}