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:
commit
5d06898f18
2 changed files with 56 additions and 0 deletions
|
@ -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";
|
||||
|
|
49
pkgs/by-name/mi/migrate-to-uv/package.nix
Normal file
49
pkgs/by-name/mi/migrate-to-uv/package.nix
Normal 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";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue