Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 poetry-core,
6 strenum,
7 httpx,
8 h2,
9}:
10
11buildPythonPackage rec {
12 pname = "supafunc";
13 version = "0.10.1";
14 pyproject = true;
15
16 src = fetchPypi {
17 inherit pname version;
18 hash = "sha256-pbM8i67La1KX0l2imiUD4uxn7mmG89RME35lG4pZoX0=";
19 };
20
21 dependencies = [
22 strenum
23 httpx
24 h2
25 ];
26
27 build-system = [ poetry-core ];
28
29 pythonImportsCheck = [ "supafunc" ];
30
31 # tests are not in pypi package
32 doCheck = false;
33
34 meta = {
35 homepage = "https://github.com/supabase/functions-py";
36 license = lib.licenses.mit;
37 description = "Library for Supabase Functions";
38 maintainers = with lib.maintainers; [ siegema ];
39 };
40}