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

33 lines
563 B
Nix
Raw Normal View History

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