depot/third_party/nixpkgs/pkgs/development/python-modules/python-docx/default.nix
Default email 58f8944c92 Project import generated by Copybara.
GitOrigin-RevId: 5aba0fe9766a7201a336249fd6cb76e0d7ba2faf
2020-09-24 23:45:31 -05:00

34 lines
703 B
Nix

{ lib
, behave
, buildPythonPackage
, fetchPypi
, lxml
, pytest
, pyparsing
, mock
}:
buildPythonPackage rec {
pname = "python-docx";
version = "0.8.10";
src = fetchPypi {
inherit pname version;
sha256 = "bc76ecac6b2d00ce6442a69d03a6f35c71cd72293cd8405a7472dfe317920024";
};
checkInputs = [ behave mock pyparsing pytest ];
propagatedBuildInputs = [ lxml ];
checkPhase = ''
py.test tests
behave --format progress --stop --tags=-wip
'';
meta = {
description = "Create and update Microsoft Word .docx files";
homepage = "https://python-docx.readthedocs.io/en/latest/";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.alexchapman ];
};
}