Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 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.0"; 12 disabled = isPy27; 13 14 src = fetchPypi { 15 inherit pname version; 16 sha256 = "df413d86664e2d261f67749beffff07eb830ab8c7bbe631d11d4c42f3a5e5fde"; 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}