1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-19 03:48:57 +00:00
nixpkgs/pkgs/development/python-modules/python-docx/default.nix
2018-08-25 18:07:15 +02:00

34 lines
652 B
Nix

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