Files
nixpkgs/pkgs/development/python-modules/graphql-core/default.nix
2024-10-13 11:03:32 +02:00

42 lines
804 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
py,
pytest-benchmark,
pytest-asyncio,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "graphql-core";
version = "3.2.4";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "graphql-python";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-LWmUrkYZuyzQ89Z3dXrce1xk3NODXrHWvWG9zAYTUi0=";
};
nativeCheckInputs = [
py
pytest-asyncio
pytest-benchmark
pytestCheckHook
];
pythonImportsCheck = [ "graphql" ];
meta = with lib; {
description = "Port of graphql-js to Python";
homepage = "https://github.com/graphql-python/graphql-core";
license = licenses.mit;
maintainers = with maintainers; [ kamadorueda ];
};
}