blob: f2bc903d3d581491bd26a7e93c2e5da15086885d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
{ lib
, fetchFromGitHub
, python3Packages
, nixosTests
, testers
, sqlite3-to-mysql
, mysql80
}:
python3Packages.buildPythonApplication rec {
pname = "sqlite3-to-mysql";
version = "2.2.0";
format = "pyproject";
disabled = python3Packages.pythonOlder "3.8";
src = fetchFromGitHub {
owner = "techouse";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-oav5HJdTmSAKk1b0wpzU2UOoY53zh5BrQ3Q0N360NeQ=";
};
nativeBuildInputs = with python3Packages; [
hatchling
];
propagatedBuildInputs = with python3Packages; [
click
mysql-connector
pytimeparse2
pymysql
pymysqlsa
simplejson
sqlalchemy
sqlalchemy-utils
tqdm
tabulate
unidecode
packaging
mysql80
];
pythonRelaxDeps = [
"mysql-connector-python"
];
# tests require a mysql server instance
doCheck = false;
# run package tests as a separate nixos test
passthru.tests = {
nixosTest = nixosTests.sqlite3-to-mysql;
version = testers.testVersion {
package = sqlite3-to-mysql;
command = "sqlite3mysql --version";
};
};
meta = with lib; {
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 ];
mainProgram = "sqlite3mysql";
};
}
|