python311Packages.repoze-who: refactor

This commit is contained in:
natsukium 2023-11-11 18:03:52 +09:00
parent 1ef3bec475
commit ef32b01a8b
No known key found for this signature in database
GPG Key ID: 9EA45A31DB994C53

View File

@ -1,13 +1,16 @@
{ lib
, buildPythonPackage
, fetchPypi
, setuptools
, zope_interface
, webob
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "repoze-who";
version = "3.0.0";
pyproject = true;
src = fetchPypi {
pname = "repoze.who";
@ -15,14 +18,32 @@ buildPythonPackage rec {
hash = "sha256-6VWt8AwfCwxxXoKJeaI37Ev37nCCe9l/Xhe/gnYNyzA=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [ zope_interface webob ];
nativeCheckInputs = [
pytestCheckHook
];
# skip failing test
# OSError: [Errno 22] Invalid argument
preCheck = ''
rm repoze/who/plugins/tests/test_htpasswd.py
'';
pythonImportsCheck = [
"repoze.who"
];
pythonNamespaces = [
"repoze"
"repoze.who"
"repoze.who.plugins"
];
meta = with lib; {
description = "WSGI Authentication Middleware / API";
homepage = "http://www.repoze.org";