about summary refs log tree commit diff
path: root/pkgs/development/python-modules/graphql-server-core
diff options
context:
space:
mode:
authorKevin Amado <kamadorueda@gmail.com>2020-02-09 09:48:25 -0500
committerJon <jonringer@users.noreply.github.com>2020-02-23 12:43:39 -0800
commitc6f75c74df9fb26e53a3874088fcac4a0ed28863 (patch)
tree577e42b506af5b0f64239a8f4c365d42893b4022 /pkgs/development/python-modules/graphql-server-core
parent58dac999c200153564f085620f115159d4fe24da (diff)
pythonPackages.graphql-server-core: init at 1.2.0
Diffstat (limited to 'pkgs/development/python-modules/graphql-server-core')
-rw-r--r--pkgs/development/python-modules/graphql-server-core/default.nix40
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/graphql-server-core/default.nix b/pkgs/development/python-modules/graphql-server-core/default.nix
new file mode 100644
index 0000000000000..e12d71836f180
--- /dev/null
+++ b/pkgs/development/python-modules/graphql-server-core/default.nix
@@ -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
+    ];
+  };
+}