From 3ae9e59e41776520c05836501223671d3586839d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Mon, 28 Mar 2022 10:18:22 +0200 Subject: [PATCH] python39Packages.editorconfig: workaround removal of git:// --- .../python-modules/editorconfig/default.nix | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/editorconfig/default.nix b/pkgs/development/python-modules/editorconfig/default.nix index 520167c100f..32e446d71a3 100644 --- a/pkgs/development/python-modules/editorconfig/default.nix +++ b/pkgs/development/python-modules/editorconfig/default.nix @@ -4,6 +4,14 @@ , cmake }: +let + tests = fetchFromGitHub { + owner = "editorconfig"; + repo = "editorconfig-core-test"; + rev = "e407c1592df0f8e91664835324dea85146f20189"; + sha256 = "sha256-9WSEkMJOewPqJjB6f7J6Ir0L+U712hkaN+GszjnGw7c="; + }; +in buildPythonPackage rec { pname = "editorconfig"; version = "0.12.3"; @@ -12,10 +20,16 @@ buildPythonPackage rec { owner = "editorconfig"; repo = "editorconfig-core-py"; rev = "v${version}"; - sha256 = "sha256-KwfGWc2mYhUP6SN4vhIO0eX0dasBRC2LSeLEOA/NqG8="; - fetchSubmodules = true; + sha256 = "sha256-ZwoTMgk18+BpPNtXKQUMXGcl2Lp+1RQVyPHgk6gHWh8="; + # workaround until https://github.com/editorconfig/editorconfig-core-py/pull/40 is merged + # fetchSubmodules = true; }; + postUnpack = '' + cp -r ${tests}/* source/tests + chmod +w -R source/tests + ''; + nativeBuildInputs = [ cmake ];