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