Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
48 lines
1.0 KiB
Nix
48 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
fetchPypi,
|
|
python3Packages,
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "uv-sort";
|
|
version = "0.6.1";
|
|
pyproject = true;
|
|
|
|
# Build from GitHub does not work. Use fetchPypi instead of fetchFromGitHub.
|
|
# See https://github.com/NixOS/nixpkgs/pull/388382#issuecomment-2708857805
|
|
src = fetchPypi {
|
|
pname = "uv_sort";
|
|
inherit version;
|
|
hash = "sha256-ovOCiu22ClSheWDsPBAx5s+LcR5jIQFqb1Dm0wpEKGU=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml \
|
|
--replace-fail '"packaging~=24.1"' '"packaging"'
|
|
'';
|
|
|
|
build-system = with python3Packages; [
|
|
hatchling
|
|
uv-dynamic-versioning
|
|
];
|
|
|
|
dependencies = with python3Packages; [
|
|
packaging
|
|
tomlkit
|
|
typer
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
python3Packages.pytestCheckHook
|
|
];
|
|
|
|
meta = {
|
|
description = "Sort uv's dependencies alphabetically";
|
|
homepage = "https://github.com/ninoseki/uv-sort";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ aaronjheng ];
|
|
mainProgram = "uv-sort";
|
|
};
|
|
}
|