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