From c0c72e9823b894589608aa0cd6beb9ba8b171444 Mon Sep 17 00:00:00 2001 From: Lein Matsumaru Date: Sun, 7 Jun 2026 04:12:23 +0000 Subject: [PATCH] python3Packages.scalar-fastapi: 1.6.1 -> 1.8.2 Fetch from github repo since test are not included in tar.gz --- .../python-modules/scalar-fastapi/default.nix | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/scalar-fastapi/default.nix b/pkgs/development/python-modules/scalar-fastapi/default.nix index 78a68b2cc8e6..58349c71b6d4 100644 --- a/pkgs/development/python-modules/scalar-fastapi/default.nix +++ b/pkgs/development/python-modules/scalar-fastapi/default.nix @@ -1,7 +1,7 @@ { lib, buildPythonPackage, - fetchPypi, + fetchFromGitHub, # build-system setuptools, @@ -23,14 +23,18 @@ buildPythonPackage rec { pname = "scalar-fastapi"; - version = "1.6.1"; + version = "1.8.2"; pyproject = true; - src = fetchPypi { + src = fetchFromGitHub { + owner = "scalar"; + repo = "scalar"; pname = "scalar_fastapi"; - inherit version; - hash = "sha256-XTzJbw84TTiLWKuldqkDuQfjyY2sqxM5ByIQ6UbE8DM="; + # The commit changed integrations/fastapi/package.json which defines version number + rev = "0f4bd9da2706be09a8afba017465f55a62dc0975"; + hash = "sha256-FvbRsLEfdG2fqg14xXG0K1nn8+qX/Co9Sy2EOM0DTlg="; }; + sourceRoot = "${src.name}/integrations/fastapi"; build-system = [ setuptools