1{ lib 2, buildPythonPackage 3, click 4, fetchFromGitHub 5, pytest-xdist 6, pytestCheckHook 7, pythonOlder 8, ruyaml 9}: 10 11buildPythonPackage rec { 12 pname = "yamlfix"; 13 version = "0.8.2"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "lyz-code"; 20 repo = pname; 21 rev = version; 22 sha256 = "sha256-YCC4xK1fB5Gyv32JhbSuejtzLNMRnH7iyUpzccVijS0="; 23 }; 24 25 propagatedBuildInputs = [ 26 click 27 ruyaml 28 ]; 29 30 checkInputs = [ 31 pytest-xdist 32 pytestCheckHook 33 ]; 34 35 postPatch = '' 36 substituteInPlace pyproject.toml \ 37 --replace 'python_paths = "."' "" 38 ''; 39 40 pythonImportsCheck = [ 41 "yamlfix" 42 ]; 43 44 meta = with lib; { 45 description = "Python YAML formatter that keeps your comments"; 46 homepage = "https://github.com/lyz-code/yamlfix"; 47 license = licenses.gpl3Plus; 48 maintainers = with maintainers; [ koozz ]; 49 }; 50}