diff --git a/pkgs/development/python-modules/hyperglot/default.nix b/pkgs/development/python-modules/hyperglot/default.nix index 1722f06a28ce..549eaacf324b 100644 --- a/pkgs/development/python-modules/hyperglot/default.nix +++ b/pkgs/development/python-modules/hyperglot/default.nix @@ -1,23 +1,27 @@ { lib, nix-update-script, - fetchPypi, + fetchFromGitHub, buildPythonApplication, setuptools, + pytestCheckHook, click, fonttools, uharfbuzz, pyyaml, colorlog, + packaging, }: buildPythonApplication rec { pname = "hyperglot"; - version = "0.7.3"; + version = "0.8.1"; pyproject = true; - src = fetchPypi { - inherit pname version; - hash = "sha256-Pd9Yxmv9a1T2xV03q2U1m1laHE3WifHwmnGBfTTCSxM="; + src = fetchFromGitHub { + owner = "rosettatype"; + repo = "hyperglot"; + tag = version; + hash = "sha256-fiiDYggMBwd7nTHeQLWnSc3BNDyU+JUgAIk8pHLntUY="; }; dependencies = [ @@ -26,10 +30,12 @@ buildPythonApplication rec { uharfbuzz pyyaml colorlog + packaging ]; build-system = [ setuptools ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "hyperglot" ]; passthru.updateScript = nix-update-script { }; @@ -38,7 +44,7 @@ buildPythonApplication rec { description = "Database and tools for detecting language support in fonts"; homepage = "https://hyperglot.rosettatype.com"; changelog = "https://github.com/rosettatype/hyperglot/blob/${version}/CHANGELOG.md"; - license = lib.licenses.gpl3Only; + license = lib.licenses.asl20; maintainers = with lib.maintainers; [ imatpot ]; mainProgram = "hyperglot"; };