2017-08-25 09:40:49 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2019-03-02 13:23:42 +00:00
|
|
|
, defusedxml
|
|
|
|
, pytest
|
2017-08-25 09:40:49 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "odfpy";
|
2020-02-02 00:56:25 +00:00
|
|
|
version = "1.4.1";
|
2017-08-25 09:40:49 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-02-02 00:56:25 +00:00
|
|
|
sha256 = "1v1qqk9p12qla85yscq2g413l3qasn6yr4ncyc934465b5p6lxnv";
|
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;
|
|
|
|
};
|
|
|
|
}
|