mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 00:53:57 +00:00
0463f91e04
After #120881, packages using Sanic's `app.test_client` or `app.asgi_client` need to depend on `sanic-testing` as well.
25 lines
623 B
Nix
25 lines
623 B
Nix
{ lib, buildPythonPackage, fetchPypi, sanic, sanic-testing, pytestCheckHook }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "Sanic-Auth";
|
|
version = "0.3.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "0dc24ynqjraqwgvyk0g9bj87zgpq4xnssl24hnsn7l5vlkmk8198";
|
|
};
|
|
|
|
propagatedBuildInputs = [ sanic ];
|
|
|
|
checkInputs = [ pytestCheckHook sanic-testing ];
|
|
|
|
pythonImportsCheck = [ "sanic_auth" ];
|
|
|
|
meta = with lib; {
|
|
description = "Simple Authentication for Sanic";
|
|
homepage = "https://github.com/pyx/sanic-auth/";
|
|
license = licenses.bsdOriginal;
|
|
maintainers = [ maintainers.arnoldfarkas ];
|
|
};
|
|
}
|