From 269bf5083d385dfaa962ed870b0b6982cec48d1e Mon Sep 17 00:00:00 2001 From: Theodore Ni <3806110+tjni@users.noreply.github.com> Date: Tue, 22 Aug 2023 23:08:35 -0700 Subject: [PATCH] python3.pkgs.polyline: relax build dependencies --- pkgs/development/python-modules/polyline/default.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pkgs/development/python-modules/polyline/default.nix b/pkgs/development/python-modules/polyline/default.nix index 26cec2331cb7..5ab360ae7e37 100644 --- a/pkgs/development/python-modules/polyline/default.nix +++ b/pkgs/development/python-modules/polyline/default.nix @@ -1,9 +1,11 @@ { lib , buildPythonPackage , fetchFromGitHub +, fetchpatch , pytestCheckHook , pythonOlder , setuptools +, wheel }: buildPythonPackage rec { @@ -20,6 +22,15 @@ buildPythonPackage rec { hash = "sha256-e9ZDqcS3MaMlXi2a2JHI6NtRPqIV7rjsucGXEH6V8LA="; }; + patches = [ + # https://github.com/frederickjansen/polyline/pull/15 + (fetchpatch { + name = "relax-build-dependencies.patch"; + url = "https://github.com/frederickjansen/polyline/commit/cb9fc80606c33dbbcaa0d94de25ae952358443b6.patch"; + hash = "sha256-epg2pZAG+9QuICa1ms+/EO2DDmYEz+KEtxxnvG7rsWY="; + }) + ]; + postPatch = '' substituteInPlace pyproject.toml \ --replace " --cov=polyline --cov-report term-missing" "" @@ -27,6 +38,7 @@ buildPythonPackage rec { nativeBuildInputs = [ setuptools + wheel ]; nativeCheckInputs = [