python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / python-modules / graphql-server-core / default.nix
blob2ba45e09967312a663789c341f63a19db5479bed
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   disable = pythonOlder "3.6";
16   src = fetchFromGitHub {
17     owner = "graphql-python";
18     repo = pname;
19     rev = "v${version}";
20     sha256 = "1w3biv2za2m1brwjy0z049c2m94gm1zfwxzgc6lwrsci724jv9fr";
21   };
23   patches = [
24     (fetchpatch {
25       url = "https://github.com/graphql-python/graphql-server-core/commit/865ee9d5602f352c958f6f7e15adbe9abe216784.patch";
26       sha256 = "03p44p4j8rys7mgamh2h9ibbnac2cqwvp5f5hrl2avj2hh0l6j46";
27     })
28   ];
30   propagatedBuildInputs = [
31     graphql-core
32     promise
33   ];
35   # fail with: cannot import name 'format_error' from 'graphql'
36   doCheck = false;
38   checkInputs = [
39     pytestCheckHook
40   ];
42   meta = with lib; {
43     description = "Core package for using GraphQL in a custom server easily";
44     homepage = "https://github.com/graphql-python/graphql-server-core";
45     license = licenses.mit;
46     maintainers = with maintainers; [ kamadorueda ];
47   };