Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.1 kB · 57 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758{ lib, buildPythonPackage, fetchFromGitHub, setuptools, cobble, funk, pytestCheckHook, spur, tempman, gitUpdater,}:
buildPythonPackage rec { pname = "mammoth"; version = "1.8.0"; pyproject = true;
src = fetchFromGitHub { owner = "mwilliamson"; repo = "python-mammoth"; tag = version; hash = "sha256-mIvzEyKpy1j7tZti+QTXgsbqqZAhYs7N+p5sQFsLhBg="; };
postPatch = '' substituteInPlace setup.py \ --replace-fail 'read("README")' '""' '';
build-system = [ setuptools ];
dependencies = [ cobble ];
pythonImportsCheck = [ "mammoth" ];
nativeCheckInputs = [ funk pytestCheckHook spur tempman ];
preCheck = '' export PATH=$out/bin:$PATH '';
passthru.updateScripts = 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/${src.tag}/NEWS"; license = lib.licenses.bsd2; maintainers = with lib.maintainers; [ drupol ]; };}