depot/third_party/nixpkgs/pkgs/development/python-modules/sgmllib3k/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

36 lines
735 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
isPy27,
pytestCheckHook,
pythonAtLeast,
}:
buildPythonPackage rec {
pname = "sgmllib3k";
version = "1.0.0";
format = "setuptools";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
hash = "sha256-eGj7HIv6dkwaxWPTzzacOB0TJdNhJJM6cm8p/NqoEuk=";
};
nativeCheckInputs = [ pytestCheckHook ];
disabledTests = lib.optionals (pythonAtLeast "3.10") [ "test_declaration_junk_chars" ];
doCheck = false;
pythonImportsCheck = [ "sgmllib" ];
meta = with lib; {
homepage = "https://pypi.org/project/sgmllib3k/";
description = "Python 3 port of sgmllib";
license = licenses.bsd2;
maintainers = with maintainers; [ lovesegfault ];
};
}