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

69 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
cu2qu,
defcon,
fontfeatures,
fonttools,
glyphslib,
openstep-plist,
orjson,
pytestCheckHook,
setuptools,
setuptools-scm,
ufolib2,
vfblib,
}:
buildPythonPackage rec {
pname = "babelfont";
version = "3.0.5";
pyproject = true;
# PyPI source tarballs omit tests, fetch from Github instead
src = fetchFromGitHub {
owner = "simoncozens";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-9PEOkkm7qH4ExiJJKrTZX5Ph/urtOyFsy7jjtFepncU=";
};
build-system = [
setuptools
setuptools-scm
];
dependencies = [
cu2qu
fontfeatures
fonttools
glyphslib
openstep-plist
orjson
ufolib2
vfblib
];
nativeCheckInputs = [
defcon
pytestCheckHook
];
# Want non exsiting test data
disabledTests = [
"test_rename"
"test_rename_nested"
"test_rename_contextual"
];
disabledTestPaths = [ "tests/test_glyphs3_roundtrip.py" ];
meta = with lib; {
description = "Python library to load, examine, and save fonts in a variety of formats";
mainProgram = "babelfont";
homepage = "https://github.com/simoncozens/babelfont";
license = licenses.bsd3;
maintainers = with maintainers; [ danc86 ];
};
}