depot/third_party/nixpkgs/pkgs/development/python-modules/axisregistry/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

44 lines
1 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
fonttools,
protobuf,
pytestCheckHook,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "axisregistry";
version = "0.4.10";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-/N67VDr1ZFDRmZsxYCFT+KdUmc2ElgGNd8ljGWC5V0U=";
};
propagatedBuildInputs = [
fonttools
protobuf
];
nativeBuildInputs = [
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" ];
meta = with lib; {
description = "Google Fonts registry of OpenType variation axis tags";
homepage = "https://github.com/googlefonts/axisregistry";
license = licenses.asl20;
maintainers = with maintainers; [ danc86 ];
};
}