aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/python-modules/pxml/default.nix
blob: 229b174adec27800a4cf0d1369832002d26e1b26 (plain)
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
{ stdenv
, pythonAtLeast
, isPy27
, buildPythonPackage
, fetchPypi
, blessings
, six
, nose
, coverage
}:

buildPythonPackage rec {
  pname = "pxml";
  version = "0.2.13";
  disabled = pythonAtLeast "3.8";

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

  propagatedBuildInputs = [ blessings six ];
  checkInputs = [ nose coverage ];

  # test_prefixedWhitespace fails due to a python3 StringIO issue requiring
  # bytes rather than str
  checkPhase = ''
    nosetests -e 'test_prefixedWhitespace'
  '';

  meta = with stdenv.lib; {
    homepage = "https://github.com/metagriffin/pxml";
    description = ''A python library and command-line tool to "prettify" and colorize XML.'';
    maintainers = with maintainers; [ glittershark ];
    license = licenses.gpl3;
  };
}