Skip to content

Commit 7b55488

Browse files
committed
migrate-to-uv: init at 0.2.1
1 parent b2d53ed commit 7b55488

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
lib,
3+
python3,
4+
fetchFromGitHub,
5+
cargo,
6+
rustPlatform,
7+
rustc,
8+
versionCheckHook,
9+
nix-update-script,
10+
}:
11+
12+
python3.pkgs.buildPythonApplication rec {
13+
pname = "migrate-to-uv";
14+
version = "0.2.1";
15+
pyproject = true;
16+
17+
src = fetchFromGitHub {
18+
owner = "mkniewallner";
19+
repo = "migrate-to-uv";
20+
tag = version;
21+
hash = "sha256-LA2tzTD3e6IPmeYHWKFD+PIsl6hsvfpYDKhN9upttHI=";
22+
};
23+
24+
cargoDeps = rustPlatform.fetchCargoVendor {
25+
inherit src pname version;
26+
hash = "sha256-aiUCLRHCntJKZGCNdyfFCyRdIP+9Fr8yVzaDVct9Dv8=";
27+
};
28+
29+
build-system = [
30+
cargo
31+
rustPlatform.cargoSetupHook
32+
rustPlatform.maturinBuildHook
33+
rustc
34+
];
35+
36+
nativeCheckInputs = [ versionCheckHook ];
37+
versionCheckProgramArg = "--version";
38+
39+
passthru.updateScript = nix-update-script { };
40+
41+
meta = {
42+
description = "Migrate a project from Poetry/Pipenv/pip-tools/pip to uv package manager";
43+
homepage = "https://mkniewallner.github.io/migrate-to-uv/";
44+
changelog = "https://github.com/mkniewallner/migrate-to-uv/blob/${src.tag}/CHANGELOG.md";
45+
license = lib.licenses.mit;
46+
maintainers = with lib.maintainers; [ malik ];
47+
mainProgram = "migrate-to-uv";
48+
};
49+
}

0 commit comments

Comments
 (0)