Files
nixpkgs/pkgs/development/python-modules/docx2python/default.nix
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

51 lines
1005 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
lxml,
paragraphs,
setuptools,
setuptools-scm,
pytestCheckHook,
pythonOlder,
typing-extensions,
}:
buildPythonPackage rec {
pname = "docx2python";
version = "3.3.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "ShayHill";
repo = "docx2python";
tag = version;
hash = "sha256-u1zOMfYMhmBsvUcfG7UEMvKT9U5XEkBalGtMOgN8RCU=";
};
build-system = [
setuptools
setuptools-scm
];
dependencies = [
lxml
paragraphs
typing-extensions
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "docx2python" ];
meta = {
description = "Extract docx headers, footers, (formatted) text, footnotes, endnotes, properties, and images";
homepage = "https://github.com/ShayHill/docx2python";
changelog = "https://github.com/ShayHill/docx2python/blob/${src.rev}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = [ ];
};
}