nixpkgs/pkgs/development/python-modules/pyxl3/default.nix

36 lines
758 B
Nix
Raw Normal View History

2019-05-08 15:50:38 +01:00
{ lib
, buildPythonPackage
, fetchPypi
, unittest2
, python
, isPy27
}:
buildPythonPackage rec {
pname = "pyxl3";
2020-06-06 07:47:29 +01:00
version = "1.4";
2019-05-08 15:50:38 +01:00
disabled = isPy27;
src = fetchPypi {
inherit pname version;
2020-06-06 07:47:29 +01:00
sha256 = "ad4cc56bf4b35def33783e6d4783882702111fe8f9a781c63228e2114067c065";
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";
homepage = "https://github.com/gvanrossum/pyxl3";
2019-05-08 15:50:38 +01:00
license = licenses.asl20;
maintainers = [ maintainers.costrouc ];
};
}