nixpkgs/pkgs/development/python-modules/compreffor/default.nix
2023-07-21 19:21:09 +00:00

46 lines
788 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, setuptools-scm
, fonttools
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "compreffor";
version = "0.5.4";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-MGulQEUGPrQ30T3VYzwRRlvzvWkFqNzqsNzAjtjX9xU=";
};
nativeBuildInputs = [
setuptools-scm
];
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; [ ];
};
}