Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / graphql-server-core / default.nix
bloba098f9c85e70485cbefb03d22be61e047ccc882b
1 { buildPythonPackage
2 , fetchFromGitHub
3 , lib
4 , graphql-core
5 , promise
6 , fetchpatch
7 , pythonOlder
8 , pytestCheckHook
9 }:
11 buildPythonPackage rec {
12   pname = "graphql-server-core";
13   version = "2.0.0";
14   format = "setuptools";
15   disabled = pythonOlder "3.6";
17   src = fetchFromGitHub {
18     owner = "graphql-python";
19     repo = pname;
20     rev = "v${version}";
21     sha256 = "1w3biv2za2m1brwjy0z049c2m94gm1zfwxzgc6lwrsci724jv9fr";
22   };
24   patches = [
25     (fetchpatch {
26       url = "https://github.com/graphql-python/graphql-server-core/commit/865ee9d5602f352c958f6f7e15adbe9abe216784.patch";
27       sha256 = "03p44p4j8rys7mgamh2h9ibbnac2cqwvp5f5hrl2avj2hh0l6j46";
28     })
29   ];
31   propagatedBuildInputs = [
32     graphql-core
33     promise
34   ];
36   # fail with: cannot import name 'format_error' from 'graphql'
37   doCheck = false;
39   nativeCheckInputs = [
40     pytestCheckHook
41   ];
43   meta = with lib; {
44     description = "Core package for using GraphQL in a custom server easily";
45     homepage = "https://github.com/graphql-python/graphql-server-core";
46     license = licenses.mit;
47     maintainers = with maintainers; [ kamadorueda ];
48   };