Merge pull request #335526 from r-ryantm/auto-update/python312Packages.uv

python312Packages.uv: 0.2.27 -> 0.2.37
This commit is contained in:
Gaétan Lepage 2024-08-18 10:20:02 +02:00 committed by GitHub
commit 361fb2299d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 449 additions and 328 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,35 +1,36 @@
{ lib {
, cmake lib,
, darwin cmake,
, fetchFromGitHub darwin,
, installShellFiles fetchFromGitHub,
, libiconv installShellFiles,
, pkg-config libiconv,
, python3Packages pkg-config,
, rustPlatform python3Packages,
, stdenv rustPlatform,
, testers stdenv,
, uv testers,
, nix-update-script uv,
nix-update-script,
}: }:
python3Packages.buildPythonApplication rec { python3Packages.buildPythonApplication rec {
pname = "uv"; pname = "uv";
version = "0.2.27"; version = "0.2.37";
pyproject = true; pyproject = true;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "astral-sh"; owner = "astral-sh";
repo = "uv"; repo = "uv";
rev = "refs/tags/${version}"; rev = "refs/tags/${version}";
hash = "sha256-KYBHg0E06zeUpyIdPcMQijUorwX4QiiPwacR+UcDFJs="; hash = "sha256-3FSA+JsAbLzS3ONoLciDzpyCsO6Em8lNVYR43WiK1xs=";
}; };
cargoDeps = rustPlatform.importCargoLock { cargoDeps = rustPlatform.importCargoLock {
lockFile = ./Cargo.lock; lockFile = ./Cargo.lock;
outputHashes = { outputHashes = {
"async_zip-0.0.17" = "sha256-Q5fMDJrQtob54CTII3+SXHeozy5S5s3iLOzntevdGOs="; "async_zip-0.0.17" = "sha256-3k9rc4yHWhqsCUJ17K55F8aQoCKdVamrWAn6IDWo3Ss=";
"pubgrub-0.2.1" = "sha256-4/Z/NA0MsHFaChu+sNzIQJgV0M62ZXOGQubzITIC4fI="; "pubgrub-0.2.1" = "sha256-yhZm35Dyl6gcBTxKvsxJXv1GTOuMCDknnSTgGgKD488=";
"reqwest-middleware-0.3.2" = "sha256-OiC8Kg+F2eKy7YNuLtgYPi95DrbxLvsIKrKEeyuzQTo="; "reqwest-middleware-0.3.2" = "sha256-OiC8Kg+F2eKy7YNuLtgYPi95DrbxLvsIKrKEeyuzQTo=";
}; };
}; };
@ -44,13 +45,14 @@ python3Packages.buildPythonApplication rec {
buildInputs = [ buildInputs = [
libiconv libiconv
] ++ lib.optionals stdenv.isDarwin [ ] ++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.SystemConfiguration ];
darwin.apple_sdk.frameworks.SystemConfiguration
];
dontUseCmakeConfigure = true; dontUseCmakeConfigure = true;
cargoBuildFlags = [ "--package" "uv" ]; cargoBuildFlags = [
"--package"
"uv"
];
postInstall = '' postInstall = ''
export HOME=$TMPDIR export HOME=$TMPDIR
@ -60,14 +62,10 @@ python3Packages.buildPythonApplication rec {
--zsh <($out/bin/uv --generate-shell-completion zsh) --zsh <($out/bin/uv --generate-shell-completion zsh)
''; '';
pythonImportsCheck = [ pythonImportsCheck = [ "uv" ];
"uv"
];
passthru = { passthru = {
tests.version = testers.testVersion { tests.version = testers.testVersion { package = uv; };
package = uv;
};
updateScript = nix-update-script { }; updateScript = nix-update-script { };
}; };
@ -75,7 +73,10 @@ python3Packages.buildPythonApplication rec {
description = "Extremely fast Python package installer and resolver, written in Rust"; description = "Extremely fast Python package installer and resolver, written in Rust";
homepage = "https://github.com/astral-sh/uv"; homepage = "https://github.com/astral-sh/uv";
changelog = "https://github.com/astral-sh/uv/blob/${src.rev}/CHANGELOG.md"; changelog = "https://github.com/astral-sh/uv/blob/${src.rev}/CHANGELOG.md";
license = with lib.licenses; [ asl20 mit ]; license = with lib.licenses; [
asl20
mit
];
maintainers = with lib.maintainers; [ GaetanLepage ]; maintainers = with lib.maintainers; [ GaetanLepage ];
mainProgram = "uv"; mainProgram = "uv";
}; };