Commit 7f76f6bd authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt
Browse files

python3Packages.ruff-format: init at 0.5.3

parent 7b9f10d2
Loading
Loading
Loading
Loading
+44 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  cargo,
  rustPlatform,
  rustc,
}:

buildPythonPackage (finalAttrs: {
  pname = "ruff-format";
  version = "0.5.3";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "reflex-dev";
    repo = "ruff-format";
    tag = "v${finalAttrs.version}";
    hash = "sha256-7XWeEcvbsVffaDbGDW2251qaZtUj6Sip3TEs9lytoo8=";
  };

  cargoDeps = rustPlatform.fetchCargoVendor {
    inherit (finalAttrs) pname version src;
    hash = "sha256-D19Irgy8kh14neAJDMlNRQ81qyYB8NNZ25wxjbUk7wk=";
  };

  build-system = [
    cargo
    rustPlatform.cargoSetupHook
    rustPlatform.maturinBuildHook
    rustc
  ];

  pythonImportsCheck = [
    "ruff_format"
  ];

  meta = {
    description = "Fast Python code formatter";
    homepage = "https://github.com/reflex-dev/ruff-format";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ pbsds ];
  };
})
+2 −0
Original line number Diff line number Diff line
@@ -17189,6 +17189,8 @@ self: super: with self; {
  ruff-api = callPackage ../development/python-modules/ruff-api { };
  ruff-format = callPackage ../development/python-modules/ruff-format { };
  rules = callPackage ../development/python-modules/rules { };
  rumps = callPackage ../development/python-modules/rumps { };