nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 lxml,
6 paragraphs,
7 setuptools,
8 setuptools-scm,
9 pytestCheckHook,
10 typing-extensions,
11}:
12
13buildPythonPackage rec {
14 pname = "docx2python";
15 version = "4.0.0";
16 pyproject = true;
17
18 src = fetchFromGitHub {
19 owner = "ShayHill";
20 repo = "docx2python";
21 tag = version;
22 hash = "sha256-seOm5u5PDqDaPytQ8kfVr0CJV/Uv4NtWhmANWcSLp/M=";
23 };
24
25 build-system = [
26 setuptools
27 setuptools-scm
28 ];
29
30 dependencies = [
31 lxml
32 paragraphs
33 typing-extensions
34 ];
35
36 nativeCheckInputs = [ pytestCheckHook ];
37
38 pythonImportsCheck = [ "docx2python" ];
39
40 meta = {
41 description = "Extract docx headers, footers, (formatted) text, footnotes, endnotes, properties, and images";
42 homepage = "https://github.com/ShayHill/docx2python";
43 changelog = "https://github.com/ShayHill/docx2python/blob/${src.tag}/CHANGELOG.md";
44 license = lib.licenses.mit;
45 maintainers = [ ];
46 };
47}