summary refs log tree commit diff
path: root/pkgs/development/python-modules/et_xmlfile/default.nix
blob: 5ba9490d945a459325ac11b03672c09b27120330 (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
32
33
34
35
36
37
38
39
40
{ lib, stdenv
, buildPythonPackage
, fetchPypi
, lxml
, pytest
}:

buildPythonPackage rec {
  version = "1.0.1";
  pname = "et_xmlfile";

  src = fetchPypi {
    inherit pname version;
    sha256="0nrkhcb6jdrlb6pwkvd4rycw34y3s931hjf409ij9xkjsli9fkb1";
  };

  checkInputs = [ lxml pytest ];
  checkPhase = ''
    py.test $out
  '';

  meta = with lib; {
    description = "An implementation of lxml.xmlfile for the standard library";
    longDescription = ''
      et_xmlfile is a low memory library for creating large XML files.

      It is based upon the xmlfile module from lxml with the aim of
      allowing code to be developed that will work with both
      libraries. It was developed initially for the openpyxl project
      but is now a standalone module.

      The code was written by Elias Rabel as part of the Python
      Düsseldorf openpyxl sprint in September 2014.
    '';
    homepage = "https://pypi.python.org/pypi/et_xmlfile";
    license = licenses.mit;
    maintainers = with maintainers; [ sjourdois ];
  };

}