pythonPackages.python-docx: init at 0.8.6 (#38722)
This commit is contained in:
committed by
Robert Schütz
parent
064d4bfee1
commit
35f75cff4f
33
pkgs/development/python-modules/python-docx/default.nix
Normal file
33
pkgs/development/python-modules/python-docx/default.nix
Normal file
@@ -0,0 +1,33 @@
|
||||
{ lib
|
||||
, behave
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, lxml
|
||||
, pytest
|
||||
, pyparsing
|
||||
, mock
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "python-docx";
|
||||
version = "0.8.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "117i84s6fcdsrfckbvznnqgqwhnf1x0523ps16cki8sg9byydv2m";
|
||||
};
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user