python312Packages.ufmt: 2.1.0 -> 2.7.0
Diff: https://github.com/omnilib/ufmt/compare/refs/tags/v2.1.0...v2.7.0 Changelog: https://github.com/omnilib/ufmt/blob/2.7.0/CHANGELOG.md
This commit is contained in:
@@ -7,9 +7,11 @@
|
||||
flit-core,
|
||||
libcst,
|
||||
moreorless,
|
||||
pygls,
|
||||
pythonOlder,
|
||||
tomlkit,
|
||||
trailrunner,
|
||||
ruff-api,
|
||||
typing-extensions,
|
||||
unittestCheckHook,
|
||||
usort,
|
||||
@@ -17,21 +19,21 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ufmt";
|
||||
version = "2.1.0";
|
||||
format = "pyproject";
|
||||
version = "2.7.0";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
disabled = pythonOlder "3.";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "omnilib";
|
||||
repo = "ufmt";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-eQIbSC0Oxi6JD7/3o2y9f+KhT8GIiFiYiV4A3QBoWl0=";
|
||||
hash = "sha256-hIbzW7yDqk8siob+RhcnbOonkl+67sl/IGHimIeMM+Q=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ flit-core ];
|
||||
build-system = [ flit-core ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dependencies = [
|
||||
black
|
||||
click
|
||||
libcst
|
||||
@@ -42,16 +44,23 @@ buildPythonPackage rec {
|
||||
usort
|
||||
];
|
||||
|
||||
nativeCheckInputs = [ unittestCheckHook ];
|
||||
passthru.optional-dependencies = {
|
||||
lsp = [ pygls ];
|
||||
ruff = [ ruff-api ];
|
||||
};
|
||||
|
||||
nativeCheckInputs = [
|
||||
unittestCheckHook
|
||||
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
|
||||
|
||||
pythonImportsCheck = [ "ufmt" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Safe, atomic formatting with black and usort";
|
||||
mainProgram = "ufmt";
|
||||
homepage = "https://github.com/omnilib/ufmt";
|
||||
changelog = "https://github.com/omnilib/ufmt/blob/${version}/CHANGELOG.md";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
mainProgram = "ufmt";
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user