Unverified Commit 41e1ceac authored by Arne Keller's avatar Arne Keller Committed by GitHub
Browse files

python312Packages.ruff-api: use fetchCargoVendor and refactor (#386812)

parents a8e82077 96fe5ebe
Loading
Loading
Loading
Loading
+0 −2861

File deleted.

Preview size limit exceeded, changes collapsed.

+6 −12
Original line number Diff line number Diff line
@@ -3,7 +3,6 @@
  stdenv,
  buildPythonPackage,
  cargo,
  darwin,
  fetchFromGitHub,
  libiconv,
  pythonOlder,
@@ -25,12 +24,9 @@ buildPythonPackage rec {
    hash = "sha256-1XULyxu3XujhAcFnvqI5zMiXOc0axx1LS4EevjhoGDc=";
  };

  cargoDeps = rustPlatform.importCargoLock {
    lockFile = ./Cargo.lock;
    outputHashes = {
      "lsp-types-0.95.1" = "sha256-8Oh299exWXVi6A39pALOISNfp8XBya8z+KT/Z7suRxQ=";
      "ruff-0.4.10" = "sha256-FRBuvXtnbxRWoI0f8SM0U0Z5TRyX5Tbgq3d34Oh2bG4=";
    };
  cargoDeps = rustPlatform.fetchCargoVendor {
    inherit pname version src;
    hash = "sha256-q8Y5oqoSzUk1Xg4AmjLs7RO8Kr87Oi3eKLSpmXlHp4U=";
  };

  nativeBuildInputs = [
@@ -41,8 +37,6 @@ buildPythonPackage rec {
  ];

  buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
    darwin.apple_sdk.frameworks.CoreFoundation
    darwin.apple_sdk.frameworks.CoreServices
    libiconv
  ];

@@ -51,11 +45,11 @@ buildPythonPackage rec {

  pythonImportsCheck = [ "ruff_api" ];

  meta = with lib; {
  meta = {
    description = "Experimental Python API for Ruff";
    homepage = "https://github.com/amyreese/ruff-api";
    changelog = "https://github.com/amyreese/ruff-api/blob/${src.rev}/CHANGELOG.md";
    license = licenses.mit;
    maintainers = with maintainers; [ fab ];
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ fab ];
  };
}