about summary refs log tree commit diff
path: root/pkgs/development/python-modules/odfpy/default.nix
blob: 9b9f44d211bcd33edc87c381338830491d1109fd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ lib
, buildPythonPackage
, fetchPypi
, defusedxml
, pytest
}:

buildPythonPackage rec {
  pname = "odfpy";
  version = "1.4.1";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    sha256 = "1v1qqk9p12qla85yscq2g413l3qasn6yr4ncyc934465b5p6lxnv";
  };

  propagatedBuildInputs = [ defusedxml ];

  nativeCheckInputs = [ pytest ];

  checkPhase = ''
    pytest
  '';

  meta = {
    description = "Python API and tools to manipulate OpenDocument files";
    homepage = "https://github.com/eea/odfpy";
    license = lib.licenses.asl20;
  };
}