Merge pull request #288385 from NickCao/editorconfig
python311Packages.editorconfig: 0.12.3 -> 0.12.4
This commit is contained in:
commit
277897778b
1 changed files with 13 additions and 19 deletions
|
@ -1,35 +1,26 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, setuptools
|
||||
, cmake
|
||||
}:
|
||||
|
||||
let
|
||||
tests = fetchFromGitHub {
|
||||
owner = "editorconfig";
|
||||
repo = "editorconfig-core-test";
|
||||
rev = "e407c1592df0f8e91664835324dea85146f20189";
|
||||
hash = "sha256-9WSEkMJOewPqJjB6f7J6Ir0L+U712hkaN+GszjnGw7c=";
|
||||
};
|
||||
in
|
||||
buildPythonPackage rec {
|
||||
pname = "editorconfig";
|
||||
version = "0.12.3";
|
||||
format = "setuptools";
|
||||
version = "0.12.4";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "editorconfig";
|
||||
repo = "editorconfig-core-py";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-ZwoTMgk18+BpPNtXKQUMXGcl2Lp+1RQVyPHgk6gHWh8=";
|
||||
# workaround until https://github.com/editorconfig/editorconfig-core-py/pull/40 is merged
|
||||
# fetchSubmodules = true;
|
||||
hash = "sha256-+m674bLj6xs7MWU+8BMixEwy7/TjyES0lvCLLogTDHQ=";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
postUnpack = ''
|
||||
cp -r ${tests}/* source/tests
|
||||
chmod +w -R source/tests
|
||||
'';
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
cmake
|
||||
|
@ -38,9 +29,12 @@ buildPythonPackage rec {
|
|||
dontUseCmakeConfigure = true;
|
||||
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
|
||||
cmake .
|
||||
# utf_8_char fails with Python 3
|
||||
ctest -E "utf_8_char" .
|
||||
ctest .
|
||||
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "editorconfig" ];
|
||||
|
|
Loading…
Reference in a new issue