From ebf837e07ff709f91dc2cb15690e6b3698b4950f Mon Sep 17 00:00:00 2001 From: "Farkas, Arnold" Date: Mon, 27 Jan 2020 02:46:04 -0500 Subject: [PATCH] pythonPackages.sanic-auth: init at 0.2.0 --- .../python-modules/sanic-auth/default.nix | 26 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 28 insertions(+) create mode 100644 pkgs/development/python-modules/sanic-auth/default.nix diff --git a/pkgs/development/python-modules/sanic-auth/default.nix b/pkgs/development/python-modules/sanic-auth/default.nix new file mode 100644 index 000000000000..498e9cb34b11 --- /dev/null +++ b/pkgs/development/python-modules/sanic-auth/default.nix @@ -0,0 +1,26 @@ +{ lib, buildPythonPackage, fetchPypi, pytest, sanic }: + +buildPythonPackage rec { + pname = "Sanic-Auth"; + version = "0.2.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "b7cb9e93296c035ada0aa1ebfb33f9f7b62f7774c519e374b7fe703ff73589cb"; + }; + + propagatedBuildInputs = [ sanic ]; + + checkInputs = [ pytest ]; + + checkPhase = '' + pytest tests + ''; + + meta = with lib; { + description = "Simple Authentication for Sanic"; + homepage = "https://github.com/pyx/sanic-auth/"; + license = licenses.bsdOriginal; + maintainers = [ maintainers.arnoldfarkas ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 9a8136a7032e..716166e4ba61 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1347,6 +1347,8 @@ in { salmon-mail = callPackage ../development/python-modules/salmon-mail { }; + sanic-auth = callPackage ../development/python-modules/sanic-auth { }; + seekpath = callPackage ../development/python-modules/seekpath { }; selectors2 = callPackage ../development/python-modules/selectors2 { };