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