2019-05-08 15:50:38 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, unittest2
|
|
|
|
, python
|
|
|
|
, isPy27
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyxl3";
|
2019-12-19 19:31:21 +00:00
|
|
|
version = "1.3";
|
2019-05-08 15:50:38 +01:00
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-12-19 19:31:21 +00:00
|
|
|
sha256 = "23831c6d60b2ce3fbb39966f6fb21a5e053d6ce0bd08b00bb50fa388631b69ee";
|
2019-05-08 15:50:38 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ unittest2 ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} tests/test_basic.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
# tests require weird codec installation
|
|
|
|
# which is not necessary for major use of package
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python 3 port of pyxl for writing structured and reusable inline HTML";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/gvanrossum/pyxl3";
|
2019-05-08 15:50:38 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|