Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 35 lines 756 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, unittest2 5, python 6, isPy27 7}: 8 9buildPythonPackage rec { 10 pname = "pyxl3"; 11 version = "1.3"; 12 disabled = isPy27; 13 14 src = fetchPypi { 15 inherit pname version; 16 sha256 = "23831c6d60b2ce3fbb39966f6fb21a5e053d6ce0bd08b00bb50fa388631b69ee"; 17 }; 18 19 checkInputs = [ unittest2 ]; 20 21 checkPhase = '' 22 ${python.interpreter} tests/test_basic.py 23 ''; 24 25 # tests require weird codec installation 26 # which is not necessary for major use of package 27 doCheck = false; 28 29 meta = with lib; { 30 description = "Python 3 port of pyxl for writing structured and reusable inline HTML"; 31 homepage = https://github.com/gvanrossum/pyxl3; 32 license = licenses.asl20; 33 maintainers = [ maintainers.costrouc ]; 34 }; 35}