Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758{ lib, buildPythonPackage, fetchFromGitHub, setuptools, cobble, funk, pytestCheckHook, spur, tempman, gitUpdater,}:
buildPythonPackage (finalAttrs: { pname = "mammoth"; version = "1.13.0"; pyproject = true;
src = fetchFromGitHub { owner = "mwilliamson"; repo = "python-mammoth"; tag = finalAttrs.version; hash = "sha256-F8lgtxlvM44qvHTv5wK6CKGepV6Jh+SWUoWEzdnLkEI="; };
postPatch = '' substituteInPlace setup.py \ --replace-fail 'read("README")' '""' '';
build-system = [ setuptools ];
dependencies = [ cobble ];
nativeCheckInputs = [ funk pytestCheckHook spur tempman ];
preCheck = '' export PATH=$out/bin:$PATH '';
pythonImportsCheck = [ "mammoth" ];
passthru.updateScript = gitUpdater { };
meta = { description = "Convert Word documents (.docx files) to HTML"; homepage = "https://github.com/mwilliamson/python-mammoth"; changelog = "https://github.com/mwilliamson/python-mammoth/blob/${finalAttrs.src.tag}/NEWS"; license = lib.licenses.bsd2; maintainers = [ ]; };})