depot/third_party/nixpkgs/pkgs/development/python-modules/compreffor/default.nix
Default email c7f94ff3ce Project import generated by Copybara.
GitOrigin-RevId: b85ed9dcbf187b909ef7964774f8847d554fab3b
2023-08-22 22:05:09 +02:00

58 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, cython
, fetchpatch
, fetchPypi
, setuptools-scm
, fonttools
, pytestCheckHook
, wheel
}:
buildPythonPackage rec {
pname = "compreffor";
version = "0.5.4";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-MGulQEUGPrQ30T3VYzwRRlvzvWkFqNzqsNzAjtjX9xU=";
};
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";
homepage = "https://github.com/googlefonts/compreffor";
license = licenses.asl20;
maintainers = with maintainers; [ ];
};
}