depot/third_party/nixpkgs/pkgs/development/python-modules/python-docx/default.nix
Default email 841d9c7fc1 Project import generated by Copybara.
GitOrigin-RevId: 3a8d7958a610cd3fec3a6f424480f91a1b259185
2021-06-29 00:13:55 +01:00

34 lines
703 B
Nix

{ lib
, behave
, buildPythonPackage
, fetchPypi
, lxml
, pytest
, pyparsing
, mock
}:
buildPythonPackage rec {
pname = "python-docx";
version = "0.8.11";
src = fetchPypi {
inherit pname version;
sha256 = "1105d233a0956dd8dd1e710d20b159e2d72ac3c301041b95f4d4ceb3e0ebebc4";
};
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 ];
};
}