From 41f6bb837b2ffc7acc7a73f20d202778560f099d Mon Sep 17 00:00:00 2001 From: Samuel Ainsworth Date: Tue, 22 Nov 2022 14:18:00 -0800 Subject: [PATCH] python3Packages.ariadne: init at 0.16.1 --- .../python-modules/ariadne/default.nix | 45 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 47 insertions(+) create mode 100644 pkgs/development/python-modules/ariadne/default.nix diff --git a/pkgs/development/python-modules/ariadne/default.nix b/pkgs/development/python-modules/ariadne/default.nix new file mode 100644 index 000000000000..a512ce8f9694 --- /dev/null +++ b/pkgs/development/python-modules/ariadne/default.nix @@ -0,0 +1,45 @@ +{ buildPythonPackage +, fetchFromGitHub +, freezegun +, graphql-core +, lib +, opentracing +, pytest-asyncio +, pytest-mock +, pytestCheckHook +, snapshottest +, starlette +, typing-extensions +, werkzeug +}: + +buildPythonPackage rec { + pname = "ariadne"; + version = "0.16.1"; + + src = fetchFromGitHub { + owner = "mirumee"; + repo = pname; + rev = "refs/tags/${version}"; + hash = "sha256-HiIg+80vaMzQdqF2JKzP7oZzfpqSTrumXmUHGLT/wF8="; + }; + + propagatedBuildInputs = [ graphql-core starlette typing-extensions ]; + + checkInputs = [ + freezegun + opentracing + pytest-asyncio + pytest-mock + pytestCheckHook + snapshottest + werkzeug + ]; + + meta = with lib; { + description = "Python library for implementing GraphQL servers using schema-first approach"; + homepage = "https://ariadnegraphql.org"; + license = licenses.bsd3; + maintainers = with maintainers; [ samuela ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 305185fbce3e..7c39ac9df4ad 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -578,6 +578,8 @@ self: super: with self; { aria2p = callPackage ../development/python-modules/aria2p { }; + ariadne = callPackage ../development/python-modules/ariadne { }; + arnparse = callPackage ../development/python-modules/arnparse { }; arrayqueues = callPackage ../development/python-modules/arrayqueues { };