mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-08 21:24:03 +00:00
python312Packages.ruff-api: init at 0.0.6
Experimental Python API for Ruff https://github.com/amyreese/ruff-api
This commit is contained in:
parent
1e8a5c8be0
commit
ac3d3daa14
2932
pkgs/development/python-modules/ruff-api/Cargo.lock
generated
Normal file
2932
pkgs/development/python-modules/ruff-api/Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load Diff
60
pkgs/development/python-modules/ruff-api/default.nix
Normal file
60
pkgs/development/python-modules/ruff-api/default.nix
Normal file
@ -0,0 +1,60 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
buildPythonPackage,
|
||||
cargo,
|
||||
darwin,
|
||||
fetchFromGitHub,
|
||||
pythonOlder,
|
||||
rustc,
|
||||
rustPlatform,
|
||||
ufmt,
|
||||
usort,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ruff-api";
|
||||
version = "0.0.6";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "amyreese";
|
||||
repo = "ruff-api";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-nZKf0LpCoYwWoLDGoorJ+zQSLyuxfWu3LOygocVlYSs=";
|
||||
};
|
||||
|
||||
cargoDeps = rustPlatform.importCargoLock {
|
||||
lockFile = ./Cargo.lock;
|
||||
outputHashes = {
|
||||
"ruff-0.3.7" = "sha256-PS4YJpVut+KtEgSlTVtoVdlu6FVipPIzsl01/Io5N64=";
|
||||
};
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
cargo
|
||||
rustPlatform.cargoSetupHook
|
||||
rustPlatform.maturinBuildHook
|
||||
rustc
|
||||
];
|
||||
|
||||
buildInputs = lib.optionals stdenv.isDarwin [
|
||||
darwin.apple_sdk.frameworks.CoreFoundation
|
||||
darwin.apple_sdk.frameworks.CoreServices
|
||||
];
|
||||
|
||||
# Tests have issues at the moment, check with next update
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [ "ruff_api" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Experimental Python API for Ruff";
|
||||
homepage = "https://github.com/amyreese/ruff-api";
|
||||
changelog = "https://github.com/amyreese/ruff-api/blob/${version}/CHANGELOG.md";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
@ -13580,6 +13580,8 @@ self: super: with self; {
|
||||
|
||||
rubymarshal = callPackage ../development/python-modules/rubymarshal { };
|
||||
|
||||
ruff-api = callPackage ../development/python-modules/ruff-api { };
|
||||
|
||||
ruffus = callPackage ../development/python-modules/ruffus { };
|
||||
|
||||
rules = callPackage ../development/python-modules/rules { };
|
||||
|
Loading…
Reference in New Issue
Block a user