migrate-to-uv: init at 0.2.1

This commit is contained in:
Malik
2025-01-12 14:21:54 +01:00
parent b2d53edd63
commit 7b5548842c
+49
View File
@@ -0,0 +1,49 @@
{
lib,
python3,
fetchFromGitHub,
cargo,
rustPlatform,
rustc,
versionCheckHook,
nix-update-script,
}:
python3.pkgs.buildPythonApplication rec {
pname = "migrate-to-uv";
version = "0.2.1";
pyproject = true;
src = fetchFromGitHub {
owner = "mkniewallner";
repo = "migrate-to-uv";
tag = version;
hash = "sha256-LA2tzTD3e6IPmeYHWKFD+PIsl6hsvfpYDKhN9upttHI=";
};
cargoDeps = rustPlatform.fetchCargoVendor {
inherit src pname version;
hash = "sha256-aiUCLRHCntJKZGCNdyfFCyRdIP+9Fr8yVzaDVct9Dv8=";
};
build-system = [
cargo
rustPlatform.cargoSetupHook
rustPlatform.maturinBuildHook
rustc
];
nativeCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "--version";
passthru.updateScript = nix-update-script { };
meta = {
description = "Migrate a project from Poetry/Pipenv/pip-tools/pip to uv package manager";
homepage = "https://mkniewallner.github.io/migrate-to-uv/";
changelog = "https://github.com/mkniewallner/migrate-to-uv/blob/${src.tag}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ malik ];
mainProgram = "migrate-to-uv";
};
}