diff options
Diffstat (limited to 'pkgs/development/python-modules/axisregistry/default.nix')
-rw-r--r-- | pkgs/development/python-modules/axisregistry/default.nix | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/pkgs/development/python-modules/axisregistry/default.nix b/pkgs/development/python-modules/axisregistry/default.nix index 9b509c2adca27..f4760c620076c 100644 --- a/pkgs/development/python-modules/axisregistry/default.nix +++ b/pkgs/development/python-modules/axisregistry/default.nix @@ -4,42 +4,44 @@ fetchPypi, fonttools, protobuf, - pythonRelaxDepsHook, pytestCheckHook, setuptools-scm, + pythonOlder, }: buildPythonPackage rec { pname = "axisregistry"; - version = "0.4.9"; - format = "setuptools"; + version = "0.4.11"; + pyproject = true; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - hash = "sha256-obpjiX86fzokao7UWQUXgarKYRNdxplr6/r2D2d7DCI="; + hash = "sha256-p1/ocmWqrCJ4CylRgen/DR0LeqcwIxB1jAauJbw8ygY="; }; - propagatedBuildInputs = [ + # Relax the dependency on protobuf 3. Other packages in the Google Fonts + # ecosystem have begun upgrading from protobuf 3 to protobuf 4, + # so we need to use protobuf 4 here as well to avoid a conflict + # in the closure of fontbakery. It seems to be compatible enough. + pythonRelaxDeps = [ "protobuf" ]; + + build-system = [ setuptools-scm ]; + + dependencies = [ fonttools protobuf ]; - nativeBuildInputs = [ - pythonRelaxDepsHook - setuptools-scm - ]; - doCheck = true; nativeCheckInputs = [ pytestCheckHook ]; - # Relax the dependency on protobuf 3. Other packages in the Google Fonts - # ecosystem have begun upgrading from protobuf 3 to protobuf 4, - # so we need to use protobuf 4 here as well to avoid a conflict - # in the closure of fontbakery. It seems to be compatible enough. - pythonRelaxDeps = [ "protobuf" ]; + pythonImportsCheck = [ "axisregistry" ]; meta = with lib; { description = "Google Fonts registry of OpenType variation axis tags"; homepage = "https://github.com/googlefonts/axisregistry"; + changelog = "https://github.com/googlefonts/axisregistry/blob/v${version}/CHANGELOG.md"; license = licenses.asl20; maintainers = with maintainers; [ danc86 ]; }; |