Files
nixpkgs/pkgs/development/python-modules/graphql-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

50 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pytest-benchmark,
pytest-asyncio,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "graphql-core";
version = "3.2.6";
pyproject = true;
src = fetchFromGitHub {
owner = "graphql-python";
repo = "graphql-core";
tag = "v${version}";
hash = "sha256-RkVyoTSVmtKhs42IK+oOrOL4uBs3As3N5KY0Sz1VaDQ=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail ', "setuptools>=59,<76"' ""
'';
build-system = [
poetry-core
];
nativeCheckInputs = [
pytest-asyncio
pytest-benchmark
pytestCheckHook
];
pytestFlags = [ "--benchmark-disable" ];
pythonImportsCheck = [ "graphql" ];
meta = {
changelog = "https://github.com/graphql-python/graphql-core/releases/tag/${src.tag}";
description = "Port of graphql-js to Python";
homepage = "https://github.com/graphql-python/graphql-core";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ kamadorueda ];
};
}