depot/third_party/nixpkgs/pkgs/development/python-modules/sanic-auth/default.nix
Default email a6d62be0d1 Project import generated by Copybara.
GitOrigin-RevId: ac169ec6371f0d835542db654a65e0f2feb07838
2021-12-26 18:43:05 +01:00

44 lines
845 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, sanic
, sanic-testing
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "Sanic-Auth";
version = "0.3.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "0dc24ynqjraqwgvyk0g9bj87zgpq4xnssl24hnsn7l5vlkmk8198";
};
propagatedBuildInputs = [
sanic
];
checkInputs = [
pytestCheckHook
sanic-testing
];
postPatch = ''
# Support for httpx>=0.20.0
substituteInPlace tests/test_auth.py \
--replace "allow_redirects=False" "follow_redirects=False"
'';
pythonImportsCheck = [
"sanic_auth"
];
meta = with lib; {
description = "Simple Authentication for Sanic";
homepage = "https://github.com/pyx/sanic-auth/";
license = licenses.bsdOriginal;
maintainers = with maintainers; [ arnoldfarkas ];
};
}