2022-06-16 17:23:12 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2022-02-10 20:34:41 +00:00
|
|
|
, buildPythonPackage
|
2023-08-22 20:05:09 +00:00
|
|
|
, fetchpatch
|
2022-02-10 20:34:41 +00:00
|
|
|
, fetchPypi
|
|
|
|
, fonttools
|
|
|
|
, pytestCheckHook
|
|
|
|
, setuptools-scm
|
2023-08-22 20:05:09 +00:00
|
|
|
, wheel
|
2022-02-10 20:34:41 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cffsubr";
|
|
|
|
version = "0.2.9.post1";
|
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-08-22 20:05:09 +00:00
|
|
|
hash = "sha256-azFBLc9JyPqEZkvahn4u3cVbb+b6aW/yU8TxOp/y/Fw=";
|
2022-02-10 20:34:41 +00:00
|
|
|
};
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
patches = [
|
|
|
|
# https://github.com/adobe-type-tools/cffsubr/pull/23
|
|
|
|
(fetchpatch {
|
|
|
|
name = "remove-setuptools-git-ls-files.patch";
|
|
|
|
url = "https://github.com/adobe-type-tools/cffsubr/commit/887a6a03b1e944b82fcb99b797fbc2f3a64298f0.patch";
|
|
|
|
hash = "sha256-LuyqBtDrKWwCeckr+YafZ5nfVw1XnELwFI6X8bGomhs=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
2023-08-22 20:05:09 +00:00
|
|
|
wheel
|
2022-02-10 20:34:41 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
fonttools
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-02-10 20:34:41 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "cffsubr" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2022-06-16 17:23:12 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2022-02-10 20:34:41 +00:00
|
|
|
description = "Standalone CFF subroutinizer based on AFDKO tx";
|
|
|
|
homepage = "https://github.com/adobe-type-tools/cffsubr";
|
|
|
|
license = licenses.asl20;
|
2023-05-24 13:37:59 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2022-02-10 20:34:41 +00:00
|
|
|
};
|
|
|
|
}
|