5ca88bfbb9
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
54 lines
1.2 KiB
Nix
54 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
cython,
|
|
fetchpatch,
|
|
fetchPypi,
|
|
setuptools-scm,
|
|
fonttools,
|
|
pytestCheckHook,
|
|
wheel,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "compreffor";
|
|
version = "0.5.5";
|
|
format = "pyproject";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-9NMmIJC8Q4hRC/H2S7OrgoWSQ9SRIPHxHvZpPrPCvHo=";
|
|
};
|
|
|
|
patches = [
|
|
# https://github.com/googlefonts/compreffor/pull/153
|
|
(fetchpatch {
|
|
name = "remove-setuptools-git-ls-files.patch";
|
|
url = "https://github.com/googlefonts/compreffor/commit/10f563564390568febb3ed1d0f293371cbd86953.patch";
|
|
hash = "sha256-wNQMJFJXTFILGzAgzUXzz/rnK67/RU+exYP6MhEQAkA=";
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
cython
|
|
setuptools-scm
|
|
wheel
|
|
];
|
|
|
|
propagatedBuildInputs = [ fonttools ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
# Tests cannot seem to open the cpython module.
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "compreffor" ];
|
|
|
|
meta = with lib; {
|
|
description = "CFF table subroutinizer for FontTools";
|
|
mainProgram = "compreffor";
|
|
homepage = "https://github.com/googlefonts/compreffor";
|
|
license = licenses.asl20;
|
|
maintainers = [ ];
|
|
};
|
|
}
|