nixpkgs/pkgs/development/python-modules/glyphsets/default.nix
2024-04-01 13:35:16 +11:00

58 lines
1.0 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, defcon
, fonttools
, gflanguages
, glyphslib
, pytestCheckHook
, requests
, setuptools
, setuptools-scm
, unicodedata2
}:
buildPythonPackage rec {
pname = "glyphsets";
version = "0.6.14";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-lMRgchadgKyfFLw6ZF1sJAKBAK75zmw77L34MW9p7TI=";
};
dependencies = [
defcon
fonttools
gflanguages
glyphslib
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 ];
};
}