mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-26 10:14:48 +00:00
40 lines
779 B
Nix
40 lines
779 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
setuptools-scm,
|
|
protobuf,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "gfmetadata";
|
|
version = "0.2.5";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "googlefonts";
|
|
repo = "gf-metadata";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-NJ/ppuodGwuEi0wC31lMAwJLY+/jgUMANm47iMrD3no=";
|
|
};
|
|
|
|
build-system = [
|
|
setuptools-scm
|
|
setuptools
|
|
];
|
|
|
|
dependencies = [
|
|
protobuf
|
|
];
|
|
|
|
pythonImportsCheck = [ "gfmetadata" ];
|
|
|
|
meta = {
|
|
description = "Python API for interacting with Google Fonts protobuf definitions";
|
|
homepage = "https://github.com/googlefonts/gf-metadata";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ jopejoe1 ];
|
|
};
|
|
})
|