mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 08:26:37 +01:00
https://github.com/googlefonts/compreffor/releases/tag/0.6.0 This commit was automatically generated using update-python-libraries.
50 lines
984 B
Nix
50 lines
984 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
cython,
|
|
fetchPypi,
|
|
setuptools-scm,
|
|
fonttools,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "compreffor";
|
|
version = "0.6.0";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-fqA0pQxZzHhzLxSABA6sK7Nvgmzi62B8MCm104qxG6g=";
|
|
};
|
|
|
|
postPatch = ''
|
|
sed -i "/setuptools_git_ls_files/d" pyproject.toml
|
|
'';
|
|
|
|
build-system = [
|
|
cython
|
|
setuptools-scm
|
|
];
|
|
|
|
dependencies = [ fonttools ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
preCheck = ''
|
|
# import from $out
|
|
mv src/python/compreffor/test .
|
|
rm -r src tools
|
|
'';
|
|
|
|
pythonImportsCheck = [ "compreffor" ];
|
|
|
|
meta = {
|
|
changelog = "https://github.com/googlefonts/compreffor/releases/tag/${version}";
|
|
description = "CFF table subroutinizer for FontTools";
|
|
mainProgram = "compreffor";
|
|
homepage = "https://github.com/googlefonts/compreffor";
|
|
license = lib.licenses.asl20;
|
|
maintainers = [ ];
|
|
};
|
|
}
|