nixpkgs/pkgs/development/python-modules/python-docx/default.nix

34 lines
652 B
Nix
Raw Normal View History

{ lib
, behave
, buildPythonPackage
, fetchPypi
, lxml
, pytest
, pyparsing
, mock
}:
buildPythonPackage rec {
pname = "python-docx";
2018-08-25 06:49:37 +01:00
version = "0.8.7";
src = fetchPypi {
inherit pname version;
2018-08-25 06:49:37 +01:00
sha256 = "ba9f2a7ca391b78ab385d796b38af3f21bab23c727fc8e0c5e630448d1a11fe3";
};
checkInputs = [ behave mock pyparsing pytest ];
propagatedBuildInputs = [ lxml ];
checkPhase = ''
py.test tests
'';
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 ];
};
}