Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / docx2python / default.nix
blobf65f4f7c9075e64a27ec0657dc66997e650ae20f
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pythonOlder
5 , poetry-core
6 , lxml
7 , pytestCheckHook
8 }:
10 buildPythonPackage rec {
11   pname = "docx2python";
12   version = "2.11.0";
13   pyproject = true;
15   disabled = pythonOlder "3.8";
17   src = fetchFromGitHub {
18     owner = "ShayHill";
19     repo = "docx2python";
20     rev = "refs/tags/${version}";
21     hash = "sha256-SavRYnNbESRQh9Elk8qCt/qdI2x+sYZJFMYy+Gojg2k=";
22   };
24   nativeBuildInputs = [
25     poetry-core
26   ];
28   propagatedBuildInputs = [
29     lxml
30   ];
32   nativeCheckInputs = [ pytestCheckHook ];
34   pythonImportsCheck = [ "docx2python" ];
36   meta = with lib; {
37     homepage = "https://github.com/ShayHill/docx2python";
38     description = "Extract docx headers, footers, (formatted) text, footnotes, endnotes, properties, and images";
39     changelog = "https://github.com/ShayHill/docx2python/blob/${src.rev}/CHANGELOG.md";
40     maintainers = [ maintainers.ivar ];
41     license = licenses.mit;
42   };