diff options
author | IvarWithoutBones <ivar.scholten@protonmail.com> | 2020-12-21 02:42:26 +0100 |
---|---|---|
committer | IvarWithoutBones <ivar.scholten@protonmail.com> | 2021-04-04 16:57:33 +0200 |
commit | a877e6c8e55442b11b2a5adaf8e6ac2cf86cf6fa (patch) | |
tree | 2e1d987ee9353980cfa26ed10671559d1c5ac912 /pkgs/development/python-modules/docx2python | |
parent | e55f77277b59fabd3c220f4870a44de705b1babb (diff) |
pythonPackages.docx2python: init at unstable-2020-11-15
Diffstat (limited to 'pkgs/development/python-modules/docx2python')
-rw-r--r-- | pkgs/development/python-modules/docx2python/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/docx2python/default.nix b/pkgs/development/python-modules/docx2python/default.nix new file mode 100644 index 0000000000000..b6a63d48b357d --- /dev/null +++ b/pkgs/development/python-modules/docx2python/default.nix @@ -0,0 +1,30 @@ +{ lib, buildPythonPackage, fetchFromGitHub, pytestCheckHook }: + +buildPythonPackage rec { + pname = "docx2python"; + version = "unstable-2020-11-15"; + + # Pypi does not contain tests + src = fetchFromGitHub { + owner = "ShayHill"; + repo = pname; + rev = "21b2edafc0a01a6cfb73aefc61747a65917e2cad"; + sha256 = "1nwg17ziwm9a2x7yxsscj8zgc1d383ifsk5w7qa2fws6gf627kyi"; + }; + + preCheck = "cd test"; # Tests require the `test/resources` folder to be accessible + checkInputs = [ pytestCheckHook ]; + disabledTests = [ # asserts related to file deletions fail + "test_docx2python.py" + "test_docx_context.py" + "test_google_docs.py" + ]; + pythonImportsCheck = [ "docx2python" ]; + + meta = with lib; { + homepage = "https://github.com/ShayHill/docx2python"; + description = "Extract docx headers, footers, (formatted) text, footnotes, endnotes, properties, and images"; + maintainers = [ maintainers.ivar ]; + license = licenses.mit; + }; +} |