Files
nixpkgs/pkgs/development/python-modules/functions-framework/default.nix
Winter a19cd4ffb1 Revert "treewide: replace rev with tag"
This reverts commit 65a333600d.

This wasn't tested for correctness with something like fodwatch [0],
and should not have been (self-)merged so quickly, especially without
further review.

It also resulted in the breakage of at least one package [1] (and that's
the one we know of and was caught).

A few packages that were updated in between this commit and this revert
were not reverted back to using `rev`, but other than that, this is a
1:1 revert.

[0]: https://codeberg.org/raphaelr/fodwatch
[1]: https://github.com/NixOS/nixpkgs/pull/396904 / 758551e458
2025-04-08 02:57:25 -04:00

67 lines
1.3 KiB
Nix

{
lib,
buildPythonPackage,
click,
cloudevents,
deprecation,
docker,
fetchFromGitHub,
flask,
gunicorn,
pretend,
pytest-asyncio,
pytestCheckHook,
requests,
setuptools,
watchdog,
werkzeug,
}:
buildPythonPackage rec {
pname = "functions-framework";
version = "3.8.2";
pyproject = true;
src = fetchFromGitHub {
owner = "GoogleCloudPlatform";
repo = "functions-framework-python";
rev = "v${version}";
hash = "sha256-wLL8VWhRb3AEa41DO/mwx3G0AwmLACiXeDvo+LEq1xM=";
};
build-system = [ setuptools ];
dependencies = [
click
cloudevents
deprecation
flask
gunicorn
watchdog
werkzeug
];
nativeCheckInputs = [
docker
pretend
pytest-asyncio
pytestCheckHook
requests
];
disabledTests = [
# Test requires a running Docker instance
"test_cloud_run_http"
];
pythonImportsCheck = [ "functions_framework" ];
meta = {
description = "FaaS (Function as a service) framework for writing portable Python functions";
homepage = "https://github.com/GoogleCloudPlatform/functions-framework-python";
changelog = "https://github.com/GoogleCloudPlatform/functions-framework-python/blob/${src.rev}/CHANGELOG.md";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
};
}