1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-24 19:08:30 +00:00
nixpkgs/pkgs/development/python-modules/python-docx/default.nix

34 lines
653 B
Nix
Raw Normal View History

{ lib
, behave
, buildPythonPackage
, fetchPypi
, lxml
, pytest
, pyparsing
, mock
}:
buildPythonPackage rec {
pname = "python-docx";
2019-01-17 15:13:06 +00:00
version = "0.8.10";
src = fetchPypi {
inherit pname version;
2019-01-17 15:13:06 +00:00
sha256 = "bc76ecac6b2d00ce6442a69d03a6f35c71cd72293cd8405a7472dfe317920024";
};
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 ];
};
}