File tree Expand file tree Collapse file tree 2 files changed +53
-3
lines changed Expand file tree Collapse file tree 2 files changed +53
-3
lines changed Original file line number Diff line number Diff line change 355
355
pythonImportsCheck = [ "connectorx" ] ;
356
356
357
357
} ;
358
+ ruff = super . buildPythonPackage rec {
359
+ pname = "ruff" ;
360
+ version = "0.9.4" ;
361
+ pyproject = true ;
362
+
363
+ outputs = [
364
+ "bin"
365
+ "out"
366
+ ] ;
367
+
368
+ src = pkgs . fetchFromGitHub {
369
+ owner = "astral-sh" ;
370
+ repo = pname ;
371
+ rev = version ;
372
+ hash = "sha256-HUCquxp8U6ZoHNSuUSu56EyiaSRRA8qUMYu6nNibt6w=" ;
373
+ } ;
374
+
375
+ nativeBuildInputs =
376
+ [ pkgs . installShellFiles ]
377
+ ++ ( with pkgs . rustPlatform ; [
378
+ cargoSetupHook
379
+ maturinBuildHook
380
+ cargoCheckHook
381
+ ] ) ;
382
+
383
+ buildInputs = with pkgs ; [
384
+ rust-jemalloc-sys
385
+ ] ;
386
+
387
+ cargoDeps = pkgs . rustPlatform . fetchCargoVendor {
388
+ inherit src ;
389
+ hash = "sha256-EiIN97I72Iam7STjZhHnvVktJXJocnVomjVp8a8t+fM=" ;
390
+ } ;
391
+
392
+ postInstall =
393
+ ''
394
+ mkdir -p $bin/bin
395
+ mv $out/bin/ruff $bin/bin/
396
+ rmdir $out/bin
397
+ ''
398
+ + pkgs . lib . optionalString ( pkgs . stdenv . buildPlatform . canExecute pkgs . stdenv . hostPlatform ) ''
399
+ installShellCompletion --cmd ruff \
400
+ --bash <($bin/bin/ruff generate-shell-completion bash) \
401
+ --fish <($bin/bin/ruff generate-shell-completion fish) \
402
+ --zsh <($bin/bin/ruff generate-shell-completion zsh)
403
+ '' ;
404
+
405
+ doCheck = false ;
406
+ } ;
358
407
kuzu = super . buildPythonPackage rec {
359
408
pname = "kuzu" ;
360
409
version = "0.4.1" ;
615
664
616
665
# Used for polars-benchmark
617
666
pydantic-settings
667
+ ruff
618
668
619
669
# # Used for Altair SVG / PNG conversions
620
670
# (localPyPkg ./python-packages/vl-convert-python)
You can’t perform that action at this time.
0 commit comments