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