14 buildPythonPackage rec {
19 disabled = pythonOlder "3.8";
21 src = fetchFromGitHub {
24 rev = "refs/tags/v${version}";
25 hash = "sha256-BW/qXq4HemqxhvjIKrrn07eqGJwAbYei7e+I+oHxujU=";
28 cargoDeps = rustPlatform.importCargoLock {
29 lockFile = ./Cargo.lock;
31 "lsp-types-0.95.1" = "sha256-8Oh299exWXVi6A39pALOISNfp8XBya8z+KT/Z7suRxQ=";
32 "ruff-0.4.10" = "sha256-FRBuvXtnbxRWoI0f8SM0U0Z5TRyX5Tbgq3d34Oh2bG4=";
38 rustPlatform.cargoSetupHook
39 rustPlatform.maturinBuildHook
43 buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
44 darwin.apple_sdk.frameworks.CoreFoundation
45 darwin.apple_sdk.frameworks.CoreServices
49 # Tests have issues at the moment, check with next update
52 pythonImportsCheck = [ "ruff_api" ];
55 description = "Experimental Python API for Ruff";
56 homepage = "https://github.com/amyreese/ruff-api";
57 changelog = "https://github.com/amyreese/ruff-api/blob/${src.rev}/CHANGELOG.md";
58 license = licenses.mit;
59 maintainers = with maintainers; [ fab ];