2021-04-28 00:22:39 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2020-02-09 15:47:03 +01:00
|
|
|
, fetchFromGitHub
|
|
|
|
, pytest-benchmark
|
2021-04-28 00:22:39 +02:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2020-02-09 15:47:03 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "graphql-core";
|
2021-04-28 00:22:39 +02:00
|
|
|
version = "3.1.4";
|
2021-02-11 03:55:42 +01:00
|
|
|
disabled = pythonOlder "3.6";
|
2020-02-09 15:47:03 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "graphql-python";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-04-28 00:22:39 +02:00
|
|
|
sha256 = "sha256-lamV5Rd37WvFBJ+zJUb+UhqxoNUrRhoMJx1NodbQUjs=";
|
2020-02-09 15:47:03 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytest-benchmark
|
2021-02-11 03:55:42 +01:00
|
|
|
pytestCheckHook
|
2020-02-09 15:47:03 +01:00
|
|
|
];
|
|
|
|
|
2021-04-28 00:22:39 +02:00
|
|
|
pythonImportsCheck = [ "graphql" ];
|
|
|
|
|
2020-02-09 15:47:03 +01: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 15:47:03 +01:00
|
|
|
};
|
|
|
|
}
|