2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
defcon,
|
|
|
|
fonttools,
|
|
|
|
gflanguages,
|
|
|
|
glyphslib,
|
|
|
|
pytestCheckHook,
|
|
|
|
pyyaml,
|
|
|
|
requests,
|
|
|
|
setuptools,
|
|
|
|
setuptools-scm,
|
|
|
|
unicodedata2,
|
2024-01-02 11:29:13 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "glyphsets";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "1.0.0";
|
2024-04-21 15:54:59 +00:00
|
|
|
pyproject = true;
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-fa+W1IGIZcn1P1xNKm1Yb/TOuf4QdDVnIvlDkOLOcLY=";
|
2024-01-02 11:29:13 +00:00
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace-fail "setuptools_scm>=8.0.4,<8.1" "setuptools_scm"
|
|
|
|
'';
|
|
|
|
|
|
|
|
build-system = [
|
|
|
|
setuptools
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
dependencies = [
|
2024-01-02 11:29:13 +00:00
|
|
|
defcon
|
|
|
|
fonttools
|
2024-04-21 15:54:59 +00:00
|
|
|
gflanguages
|
2024-01-02 11:29:13 +00:00
|
|
|
glyphslib
|
2024-05-15 15:35:15 +00:00
|
|
|
pyyaml
|
2024-04-21 15:54:59 +00:00
|
|
|
requests
|
2024-01-02 11:29:13 +00:00
|
|
|
unicodedata2
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2024-07-27 06:49:29 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
preCheck = ''
|
|
|
|
export PATH="$out/bin:$PATH"
|
|
|
|
'';
|
2024-07-27 06:49:29 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
disabledTests = [
|
|
|
|
# This "test" just tries to connect to PyPI and look for newer releases. Not needed.
|
|
|
|
"test_dependencies"
|
|
|
|
];
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Google Fonts glyph set metadata";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "glyphsets";
|
2024-01-02 11:29:13 +00:00
|
|
|
homepage = "https://github.com/googlefonts/glyphsets";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ danc86 ];
|
|
|
|
};
|
|
|
|
}
|