about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/polyline/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/polyline/default.nix')
-rw-r--r--nixpkgs/pkgs/development/python-modules/polyline/default.nix12
1 files changed, 12 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/polyline/default.nix b/nixpkgs/pkgs/development/python-modules/polyline/default.nix
index 26cec2331cb7..5ab360ae7e37 100644
--- a/nixpkgs/pkgs/development/python-modules/polyline/default.nix
+++ b/nixpkgs/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 = [