python311Packages.usort: init at 1.1.0b2
This commit is contained in:
@@ -0,0 +1,65 @@
|
||||
{ lib
|
||||
, attrs
|
||||
, buildPythonPackage
|
||||
, click
|
||||
, fetchFromGitHub
|
||||
, hatch-vcs
|
||||
, hatchling
|
||||
, libcst
|
||||
, moreorless
|
||||
, pythonOlder
|
||||
, stdlibs
|
||||
, toml
|
||||
, trailrunner
|
||||
, unittestCheckHook
|
||||
, volatile
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "usort";
|
||||
version = "1.1.0b2";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "facebook";
|
||||
repo = "usort";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-c3gQ+f/BRgM+Nwc+mEP7dcmig7ws7FqL5zwQhNJJlsI=";
|
||||
};
|
||||
|
||||
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
||||
|
||||
nativeBuildInputs = [
|
||||
hatch-vcs
|
||||
hatchling
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
attrs
|
||||
click
|
||||
libcst
|
||||
moreorless
|
||||
stdlibs
|
||||
toml
|
||||
trailrunner
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
unittestCheckHook
|
||||
volatile
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"usort"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Safe, minimal import sorting for Python projects";
|
||||
homepage = "https://github.com/facebook/usort";
|
||||
changelog = "https://github.com/facebook/usort/blob/${version}/CHANGELOG.md";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
@@ -13623,6 +13623,8 @@ with pkgs;
|
||||
|
||||
usbmuxd2 = callPackage ../tools/misc/usbmuxd2 { };
|
||||
|
||||
usort = with python3Packages; toPythonApplication usort;
|
||||
|
||||
ustreamer = callPackage ../applications/video/ustreamer { };
|
||||
|
||||
usync = callPackage ../applications/misc/usync { };
|
||||
|
||||
@@ -12850,6 +12850,8 @@ self: super: with self; {
|
||||
|
||||
ush = callPackage ../development/python-modules/ush { };
|
||||
|
||||
usort = callPackage ../development/python-modules/usort { };
|
||||
|
||||
utils = callPackage ../development/python-modules/utils { };
|
||||
|
||||
uuid = callPackage ../development/python-modules/uuid { };
|
||||
|
||||
Reference in New Issue
Block a user