default.nix (759B)
1 { 2 lib, 3 fetchFromGitHub, 4 python3Packages, 5 }: 6 7 python3Packages.buildPythonApplication { 8 pname = "docx2csv"; 9 version = "0-unstable-2023-10-11"; 10 pyproject = true; 11 12 src = fetchFromGitHub { 13 owner = "ivbeg"; 14 repo = "docx2csv"; 15 rev = "f0c0231876e2ab1210865ded80e4d6105816b0a3"; 16 hash = "sha256-A7Y1zgM+9xIDXsAQN2tGGoWbe8u/kvGch6sBNKz0Nw4="; 17 }; 18 19 build-system = with python3Packages; [ setuptools ]; 20 21 dependencies = with python3Packages; [ 22 click 23 openpyxl 24 python-docx 25 xlwt 26 ]; 27 28 meta = { 29 description = "Extracts tables from .docx files and saves them as .csv or .xls files"; 30 homepage = "https://github.com/ivbeg/docx2csv"; 31 license = lib.licenses.bsd3; 32 maintainers = [ lib.maintainers.sikmir ]; 33 }; 34 }