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

31 lines
545 B
Nix
Raw Normal View History

2017-08-25 10:40:49 +02:00
{ lib
, buildPythonPackage
, fetchPypi
2019-03-02 14:23:42 +01:00
, defusedxml
, pytest
2017-08-25 10:40:49 +02:00
}:
buildPythonPackage rec {
pname = "odfpy";
2019-02-14 08:37:22 +01:00
version = "1.4.0";
2017-08-25 10:40:49 +02:00
src = fetchPypi {
inherit pname version;
2019-02-14 08:37:22 +01:00
sha256 = "596021f0519623ca8717331951c95e3b8d7b21e86edc7efe8cb650a0d0f59a2b";
2017-08-25 10:40:49 +02:00
};
2019-03-02 14:23:42 +01:00
propagatedBuildInputs = [ defusedxml ];
checkInputs = [ pytest ];
checkPhase = ''
pytest
2017-08-25 10:40:49 +02:00
'';
meta = {
description = "Python API and tools to manipulate OpenDocument files";
2019-03-02 14:23:42 +01:00
homepage = https://github.com/eea/odfpy;
2017-08-25 10:40:49 +02:00
license = lib.licenses.asl20;
};
}