nixpkgs-suyu/pkgs/development/python-modules/graphql-core/default.nix

35 lines
706 B
Nix
Raw Normal View History

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