diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/sanic-auth/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/sanic-auth/default.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/sanic-auth/default.nix b/nixpkgs/pkgs/development/python-modules/sanic-auth/default.nix new file mode 100644 index 00000000000..498e9cb34b1 --- /dev/null +++ b/nixpkgs/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 ]; + }; +} |