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

authored by Peder Bergebakken Sundt and committed by GitHub 5d06898f fc6b5c7c

+56
+7
maintainers/maintainer-list.nix
··· 13862 githubId = 1678126; 13863 name = "Marco A L Barbosa"; 13864 }; 13865 malo = { 13866 email = "mbourgon@gmail.com"; 13867 github = "malob";
··· 13862 githubId = 1678126; 13863 name = "Marco A L Barbosa"; 13864 }; 13865 + malik = { 13866 + name = "Malik"; 13867 + email = "abdelmalik.najhi@stud.hs-kempten.de"; 13868 + github = "malikwirin"; 13869 + githubId = 117918464; 13870 + keys = [ { fingerprint = "B5ED 595C 8C7E 133C 6B68 63C8 CFEF 1E35 0351 F72D"; } ]; 13871 + }; 13872 malo = { 13873 email = "mbourgon@gmail.com"; 13874 github = "malob";
+49
pkgs/by-name/mi/migrate-to-uv/package.nix
···
··· 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 + }