0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-14 14:10:33 +03:00

migrate-to-uv: init at 0.2.1 (#372744)

This commit is contained in:
Peder Bergebakken Sundt 2025-01-13 00:08:27 +01:00 committed by GitHub
commit 5d06898f18
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 56 additions and 0 deletions

View file

@ -13862,6 +13862,13 @@
githubId = 1678126;
name = "Marco A L Barbosa";
};
malik = {
name = "Malik";
email = "abdelmalik.najhi@stud.hs-kempten.de";
github = "malikwirin";
githubId = 117918464;
keys = [ { fingerprint = "B5ED 595C 8C7E 133C 6B68 63C8 CFEF 1E35 0351 F72D"; } ];
};
malo = {
email = "mbourgon@gmail.com";
github = "malob";

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