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