2021-04-28 00:22:39 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
2020-02-09 09:47:03 -05:00
|
|
|
fetchFromGitHub,
|
2022-12-31 02:51:24 +01:00
|
|
|
py,
|
2020-02-09 09:47:03 -05:00
|
|
|
pytest-benchmark,
|
2021-12-02 17:40:38 +01:00
|
|
|
pytest-asyncio,
|
2021-04-28 00:22:39 +02:00
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
2020-02-09 09:47:03 -05:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "graphql-core";
|
2022-10-09 11:01:00 +02:00
|
|
|
version = "3.2.3";
|
2021-12-02 17:40:38 +01:00
|
|
|
format = "setuptools";
|
|
|
|
|
2021-02-11 03:55:42 +01:00
|
|
|
disabled = pythonOlder "3.6";
|
2020-02-09 09:47:03 -05:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "graphql-python";
|
|
|
|
repo = pname;
|
2022-07-16 12:59:10 +02:00
|
|
|
rev = "refs/tags/v${version}";
|
2022-10-09 11:01:00 +02:00
|
|
|
hash = "sha256-LtBbHA5r6/YNh2gKX0+NqQjrpKuMioyOYWT0R59SIL4=";
|
2020-02-09 09:47:03 -05:00
|
|
|
};
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2022-12-31 02:51:24 +01:00
|
|
|
py
|
2021-12-02 17:40:38 +01:00
|
|
|
pytest-asyncio
|
2020-02-09 09:47:03 -05:00
|
|
|
pytest-benchmark
|
2021-02-11 03:55:42 +01:00
|
|
|
pytestCheckHook
|
2020-02-09 09:47:03 -05:00
|
|
|
];
|
|
|
|
|
2021-12-02 17:40:38 +01:00
|
|
|
pythonImportsCheck = [ "graphql" ];
|
2021-04-28 00:22:39 +02:00
|
|
|
|
2020-02-09 09:47:03 -05:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Port of graphql-js to Python";
|
|
|
|
homepage = "https://github.com/graphql-python/graphql-core";
|
|
|
|
license = licenses.mit;
|
2021-04-28 00:22:39 +02:00
|
|
|
maintainers = with maintainers; [ kamadorueda ];
|
2020-02-09 09:47:03 -05:00
|
|
|
};
|
|
|
|
}
|