Merge pull request #166058 from SuperSandro2000/editorconfig
python39Packages.editorconfig: workaround removal of git://
This commit is contained in:
commit
1686a03024
1 changed files with 16 additions and 2 deletions
|
@ -4,6 +4,14 @@
|
||||||
, cmake
|
, cmake
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
tests = fetchFromGitHub {
|
||||||
|
owner = "editorconfig";
|
||||||
|
repo = "editorconfig-core-test";
|
||||||
|
rev = "e407c1592df0f8e91664835324dea85146f20189";
|
||||||
|
sha256 = "sha256-9WSEkMJOewPqJjB6f7J6Ir0L+U712hkaN+GszjnGw7c=";
|
||||||
|
};
|
||||||
|
in
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "editorconfig";
|
pname = "editorconfig";
|
||||||
version = "0.12.3";
|
version = "0.12.3";
|
||||||
|
@ -12,10 +20,16 @@ buildPythonPackage rec {
|
||||||
owner = "editorconfig";
|
owner = "editorconfig";
|
||||||
repo = "editorconfig-core-py";
|
repo = "editorconfig-core-py";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-KwfGWc2mYhUP6SN4vhIO0eX0dasBRC2LSeLEOA/NqG8=";
|
sha256 = "sha256-ZwoTMgk18+BpPNtXKQUMXGcl2Lp+1RQVyPHgk6gHWh8=";
|
||||||
fetchSubmodules = true;
|
# 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 = [
|
nativeBuildInputs = [
|
||||||
cmake
|
cmake
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue