2023-11-25 01:54:20 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
fonttools,
|
|
|
|
protobuf,
|
|
|
|
pytestCheckHook,
|
2024-08-09 06:15:31 +00:00
|
|
|
pythonOlder,
|
2024-10-18 20:20:19 +00:00
|
|
|
setuptools-scm,
|
2023-11-25 01:54:20 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "axisregistry";
|
2024-08-09 02:21:56 +00:00
|
|
|
version = "0.4.11";
|
2024-08-09 06:15:31 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2023-11-25 01:54:20 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-08-09 02:21:56 +00:00
|
|
|
hash = "sha256-p1/ocmWqrCJ4CylRgen/DR0LeqcwIxB1jAauJbw8ygY=";
|
2023-11-25 01:54:20 +00:00
|
|
|
};
|
|
|
|
|
2024-08-09 06:15:31 +00:00
|
|
|
# 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" ];
|
|
|
|
|
2024-10-18 20:20:19 +00:00
|
|
|
env.PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION = "python";
|
|
|
|
|
2024-08-09 06:15:31 +00:00
|
|
|
build-system = [ setuptools-scm ];
|
|
|
|
|
|
|
|
dependencies = [
|
2023-11-25 01:54:20 +00:00
|
|
|
fonttools
|
|
|
|
protobuf
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
|
2024-08-09 06:15:31 +00:00
|
|
|
pythonImportsCheck = [ "axisregistry" ];
|
2023-11-25 01:54:20 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Google Fonts registry of OpenType variation axis tags";
|
|
|
|
homepage = "https://github.com/googlefonts/axisregistry";
|
2024-08-09 06:10:33 +00:00
|
|
|
changelog = "https://github.com/googlefonts/axisregistry/blob/v${version}/CHANGELOG.md";
|
2023-11-25 01:54:20 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ danc86 ];
|
|
|
|
};
|
|
|
|
}
|