Files
nixpkgs/pkgs/development/python-modules/graphql-server-core/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

49 lines
1.1 KiB
Nix

{
buildPythonPackage,
fetchFromGitHub,
lib,
graphql-core,
promise,
fetchpatch,
pythonOlder,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "graphql-server-core";
version = "2.0.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "graphql-python";
repo = "graphql-server-core";
rev = "v${version}";
sha256 = "1w3biv2za2m1brwjy0z049c2m94gm1zfwxzgc6lwrsci724jv9fr";
};
patches = [
(fetchpatch {
url = "https://github.com/graphql-python/graphql-server-core/commit/865ee9d5602f352c958f6f7e15adbe9abe216784.patch";
sha256 = "03p44p4j8rys7mgamh2h9ibbnac2cqwvp5f5hrl2avj2hh0l6j46";
})
];
propagatedBuildInputs = [
graphql-core
promise
];
# fail with: cannot import name 'format_error' from 'graphql'
doCheck = false;
nativeCheckInputs = [ pytestCheckHook ];
meta = {
description = "Core package for using GraphQL in a custom server easily";
homepage = "https://github.com/graphql-python/graphql-server-core";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ kamadorueda ];
};
}