From 6b2935d60ce62f70155635eb3df609ef969552d3 Mon Sep 17 00:00:00 2001 From: Theodore Ni <3806110+tjni@users.noreply.github.com> Date: Sat, 19 Aug 2023 02:56:18 -0700 Subject: [PATCH] python3.pkgs.cffsubr: fix up build dependencies --- .../python-modules/cffsubr/default.nix | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/cffsubr/default.nix b/pkgs/development/python-modules/cffsubr/default.nix index 05d4c115085d..e86277cf2782 100644 --- a/pkgs/development/python-modules/cffsubr/default.nix +++ b/pkgs/development/python-modules/cffsubr/default.nix @@ -1,25 +1,36 @@ { stdenv , lib , buildPythonPackage +, fetchpatch , fetchPypi , fonttools , pytestCheckHook , setuptools-scm +, wheel }: buildPythonPackage rec { pname = "cffsubr"; version = "0.2.9.post1"; - format = "pyproject"; src = fetchPypi { inherit pname version; - sha256 = "azFBLc9JyPqEZkvahn4u3cVbb+b6aW/yU8TxOp/y/Fw="; + hash = "sha256-azFBLc9JyPqEZkvahn4u3cVbb+b6aW/yU8TxOp/y/Fw="; }; + 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="; + }) + ]; + nativeBuildInputs = [ setuptools-scm + wheel ]; propagatedBuildInputs = [