nixpkgs/pkgs/development/python-modules/graphql-server-core/default.nix
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

46 lines
1.1 KiB
Nix

{
buildPythonPackage,
fetchFromGitHub,
lib,
graphql-core,
promise,
fetchpatch,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "graphql-server-core";
version = "2.0.0";
format = "setuptools";
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 ];
};
}