depot/third_party/nixpkgs/pkgs/development/python-modules/glyphsets/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

59 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, defcon
, fonttools
, gflanguages
, glyphslib
, pytestCheckHook
, pyyaml
, requests
, setuptools
, setuptools-scm
, unicodedata2
}:
buildPythonPackage rec {
pname = "glyphsets";
version = "1.0.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-fa+W1IGIZcn1P1xNKm1Yb/TOuf4QdDVnIvlDkOLOcLY=";
};
dependencies = [
defcon
fonttools
gflanguages
glyphslib
pyyaml
requests
setuptools
unicodedata2
];
build-system = [
setuptools-scm
];
doCheck = true;
nativeCheckInputs = [
pytestCheckHook
];
preCheck = ''
export PATH="$out/bin:$PATH"
'';
disabledTests = [
# This "test" just tries to connect to PyPI and look for newer releases. Not needed.
"test_dependencies"
];
meta = with lib; {
description = "Google Fonts glyph set metadata";
mainProgram = "glyphsets";
homepage = "https://github.com/googlefonts/glyphsets";
license = licenses.asl20;
maintainers = with maintainers; [ danc86 ];
};
}