Commit 94f72323 authored by Doron Behar's avatar Doron Behar
Browse files
parent 32836b97
Loading
Loading
Loading
Loading
+4 −16
Original line number Diff line number Diff line
@@ -2,7 +2,6 @@
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  fetchpatch2,

  # build-system
  flit-core,
@@ -18,7 +17,7 @@
  usort,

  # optional-dependencies
  pygls,
  pygls_2,
  ruff-api,

  # tests
@@ -28,27 +27,16 @@

buildPythonPackage rec {
  pname = "ufmt";
  version = "2.8.0";
  version = "2.9.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "omnilib";
    repo = "ufmt";
    tag = "v${version}";
    hash = "sha256-oEvvXUju7qne3pCwnrckplMs0kBJavB669qieXJZPKw=";
    hash = "sha256-/5sfawsBmsStCCdu4lIq2iL0zywrWAN+qW/t3h2UIu0=";
  };

  patches = [
    # Fix click 8.2.x incompatibility
    # TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_stderr'
    # https://github.com/omnilib/ufmt/pull/260
    (fetchpatch2 {
      name = "fix-click-incompatibility.patch";
      url = "https://github.com/omnilib/ufmt/pull/260/commits/7980d7cd0a29fbd287e10d939248ef7c9d38a660.patch";
      hash = "sha256-97/jQVGCC+PXk8uxyF/M7XlLuVqJ5SgQZd/MXkaiO70=";
    })
  ];

  build-system = [ flit-core ];

  dependencies = [
@@ -63,7 +51,7 @@ buildPythonPackage rec {
  ];

  optional-dependencies = {
    lsp = [ pygls ];
    lsp = [ pygls_2 ];
    ruff = [ ruff-api ];
  };