pythonPackages.graphql-server-core: init at 1.2.0

This commit is contained in:
Kevin Amado 2020-02-09 09:48:25 -05:00 committed by Jon
parent 58dac999c2
commit c6f75c74df
2 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,40 @@
{ buildPythonPackage
, fetchFromGitHub
, lib
, black
, graphql-core
, promise
}:
buildPythonPackage rec {
pname = "graphql-server-core";
version = "1.2.0";
src = fetchFromGitHub {
owner = "graphql-python";
repo = pname;
rev = "v${version}";
sha256 = "123q3xziv0s22h10v3f5slirf4b6nxj0hnmarwx9vws6x21bgrgh";
};
propagatedBuildInputs = [
graphql-core
promise
];
checkPhase = "black --check graphql_server tests";
checkInputs = [
black
];
meta = with lib; {
description = "Core package for using GraphQL in a custom server easily";
homepage = "https://github.com/graphql-python/graphql-server-core";
license = licenses.mit;
maintainers = with maintainers; [
kamadorueda
];
};
}

View File

@ -3819,6 +3819,8 @@ in {
graphql-core = callPackage ../development/python-modules/graphql-core { };
graphql-server-core = callPackage ../development/python-modules/graphql-server-core { };
grammalecte = callPackage ../development/python-modules/grammalecte { };
greenlet = callPackage ../development/python-modules/greenlet { };