mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-24 13:53:24 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
50 lines
941 B
Nix
50 lines
941 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
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
sanic-testing
|
|
];
|
|
|
|
disabledTests = [
|
|
# incompatible with sanic>=22.3.0
|
|
"test_login_required"
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|