default.nix (882B)
1 { 2 lib, 3 fetchFromGitHub, 4 python3Packages, 5 }: 6 7 python3Packages.buildPythonApplication rec { 8 pname = "mysql-to-sqlite3"; 9 version = "2.1.9"; 10 pyproject = true; 11 12 src = fetchFromGitHub { 13 owner = "techouse"; 14 repo = "mysql-to-sqlite3"; 15 rev = "v${version}"; 16 hash = "sha256-nS+BWVemB1XYe37+Cl8q8ZhXBcZDBw5ApOapns7hXKg="; 17 }; 18 19 build-system = with python3Packages; [ hatchling ]; 20 21 dependencies = with python3Packages; [ 22 click 23 mysql-connector 24 python-slugify 25 pytimeparse2 26 simplejson 27 tabulate 28 tqdm 29 typing-extensions 30 ]; 31 32 meta = { 33 description = "Transfer data from MySQL to SQLite"; 34 homepage = "https://github.com/techouse/mysql-to-sqlite3"; 35 license = lib.licenses.mit; 36 maintainers = [ lib.maintainers.sikmir ]; 37 mainProgram = "mysql2sqlite"; 38 broken = true; # required mysql-connector-python>=8.2.0 39 }; 40 }