summary refs log tree commit diff
path: root/pkgs/development/python-modules/sanic-auth/default.nix
blob: 498e9cb34b114f4d5a6a391c624ae0f796fa7a0c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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 ];
  };
}