Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv 2, buildPythonPackage 3, fetchgit 4, cmake 5}: 6 7buildPythonPackage rec { 8 pname = "EditorConfig"; 9 version = "0.12.1"; 10 11 # fetchgit used to ensure test submodule is available 12 src = fetchgit { 13 url = "https://github.com/editorconfig/editorconfig-core-py"; 14 rev = "refs/tags/v${version}"; 15 sha256 = "0svk7id7ncygj2rnxhm7602xizljyidk4xgrl6i0xgq3829cz4bl"; 16 }; 17 18 nativeBuildInputs = [ cmake ]; 19 checkPhase = '' 20 cmake . 21 # utf_8_char fails with python3 22 ctest -E "utf_8_char" . 23 ''; 24 25 meta = with stdenv.lib; { 26 homepage = https://editorconfig.org; 27 description = "EditorConfig File Locator and Interpreter for Python"; 28 license = licenses.psfl; 29 }; 30 31}