about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRobert Schütz <robert.schuetz@stud.uni-heidelberg.de>2019-04-13 21:32:41 +0200
committerRobert Schütz <robert.schuetz@stud.uni-heidelberg.de>2019-04-13 21:40:47 +0200
commitbc14eedcb1766b91ca29ba6adbd62dca2102d17c (patch)
treeab1f4860b6f5b7587ab52b69b83c33554cde5870
parent290be50d1e509b8c16aeea8991029e03b828fe4a (diff)
python.pkgs.cairosvg: fix isort-check
-rw-r--r--pkgs/development/python-modules/cairosvg/default.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/cairosvg/default.nix b/pkgs/development/python-modules/cairosvg/default.nix
index 17d442e4527ef..beee82950496f 100644
--- a/pkgs/development/python-modules/cairosvg/default.nix
+++ b/pkgs/development/python-modules/cairosvg/default.nix
@@ -13,6 +13,15 @@ buildPythonPackage rec {
     sha256 = "66f333ef5dc79fdfbd3bbe98adc791b1f854e0461067d202fa7b15de66d517ec";
   };
 
+  patches = [
+    # fix isort-check
+    (fetchpatch {
+      url = https://github.com/Kozea/CairoSVG/commit/b2534b0fc80b9f24a2bff2c938ac5da73ff1e478.patch;
+      excludes = [ "test_non_regression/__init__.py" ];
+      sha256 = "1bms75dd0fd978yhlr0k565zq45lzxf0vkihryb7gcwnd42bl6yf";
+    })
+  ];
+
   propagatedBuildInputs = [ cairocffi cssselect2 defusedxml pillow tinycss2 ];
 
   checkInputs = [ pytest pytestrunner pytestcov pytest-flake8 pytest-isort ];