1{ lib
2, pythonAtLeast
3, buildPythonPackage
4, fetchPypi
5, blessings
6, six
7, nose
8, coverage
9}:
10
11buildPythonPackage rec {
12 pname = "pxml";
13 version = "0.2.13";
14 disabled = pythonAtLeast "3.8";
15
16 src = fetchPypi {
17 inherit pname version;
18 sha256 = "0c9zzfv6ciyf9qm7556wil45xxgykg1cj8isp1b88gimwcb2hxg4";
19 };
20
21 propagatedBuildInputs = [ blessings six ];
22 nativeCheckInputs = [ nose coverage ];
23
24 # test_prefixedWhitespace fails due to a python3 StringIO issue requiring
25 # bytes rather than str
26 checkPhase = ''
27 nosetests -e 'test_prefixedWhitespace'
28 '';
29
30 meta = with lib; {
31 homepage = "https://github.com/metagriffin/pxml";
32 description = ''A python library and command-line tool to "prettify" and colorize XML.'';
33 maintainers = with maintainers; [ glittershark ];
34 license = licenses.gpl3;
35 };
36}