python3Packages.editorconfig: switch to fetchFromGitHub

This commit is contained in:
Felix Buehler 2022-03-10 18:13:38 +01:00
parent 97b380587f
commit fca3e2ac93

View File

@ -1,6 +1,6 @@
{ lib
, buildPythonPackage
, fetchgit
, fetchFromGitHub
, cmake
}:
@ -8,11 +8,12 @@ buildPythonPackage rec {
pname = "editorconfig";
version = "0.12.3";
# fetchgit used to ensure test submodule is available
src = fetchgit {
url = "https://github.com/editorconfig/editorconfig-core-py";
rev = "1a8fb62b9941fded9e4fb83a3d0599427f5484cb"; # Not tagged
sha256 = "0vx8rl7kii72965jsi01mdsz9rfi1q9bwy13x47iaqm6rmcwc1rb";
src = fetchFromGitHub {
owner = "editorconfig";
repo = "editorconfig-core-py";
rev = "v${version}";
sha256 = "sha256-KwfGWc2mYhUP6SN4vhIO0eX0dasBRC2LSeLEOA/NqG8=";
fetchSubmodules = true;
};
nativeBuildInputs = [