Commit 13209864 authored by Gaetan Lepage's avatar Gaetan Lepage Committed by Gaétan Lepage
Browse files
parent 97ad9186
Loading
Loading
Loading
Loading
+668 −677

File changed.

Preview size limit exceeded, changes collapsed.

+8 −5
Original line number Diff line number Diff line
@@ -9,21 +9,20 @@
  python3Packages,
  rustPlatform,
  stdenv,
  testers,
  uv,
  versionCheckHook,
  nix-update-script,
}:

python3Packages.buildPythonApplication rec {
  pname = "uv";
  version = "0.4.11";
  version = "0.4.20";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "astral-sh";
    repo = "uv";
    rev = "refs/tags/${version}";
    hash = "sha256-a8mN2wag26BSL+2b5i4P1XN34J8jt+lZm2poZQdsAzM=";
    hash = "sha256-PfjYGCPPRZVm4H9oxkWdjW7kHu4CqdkenFgL61dOU5k=";
  };

  cargoDeps = rustPlatform.importCargoLock {
@@ -65,8 +64,12 @@ python3Packages.buildPythonApplication rec {

  pythonImportsCheck = [ "uv" ];

  nativeCheckInputs = [
    versionCheckHook
  ];
  versionCheckProgramArg = [ "--version" ];

  passthru = {
    tests.version = testers.testVersion { package = uv; };
    updateScript = nix-update-script { };
  };