Skip to content

Commit

Permalink
uv-sort: init at 0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronjheng committed Mar 10, 2025
1 parent 86c16d6 commit 6994211
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions pkgs/by-name/uv/uv-sort/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
lib,
fetchPypi,
python3Packages,
}:

python3Packages.buildPythonApplication rec {
pname = "uv-sort";
version = "0.5.0";
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-qCShDuKBFS4omcsntZ1wzRtAKTbp8CfTw0IIAgxBvcE=";
};

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";
};
}

0 comments on commit 6994211

Please sign in to comment.