1{ lib, buildPythonPackage, fetchPypi, pytest, sanic }:
2
3buildPythonPackage rec {
4 pname = "Sanic-Auth";
5 version = "0.2.0";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "b7cb9e93296c035ada0aa1ebfb33f9f7b62f7774c519e374b7fe703ff73589cb";
10 };
11
12 propagatedBuildInputs = [ sanic ];
13
14 checkInputs = [ pytest ];
15
16 checkPhase = ''
17 pytest tests
18 '';
19
20 meta = with lib; {
21 description = "Simple Authentication for Sanic";
22 homepage = "https://github.com/pyx/sanic-auth/";
23 license = licenses.bsdOriginal;
24 maintainers = [ maintainers.arnoldfarkas ];
25 };
26}