e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
54 lines
1 KiB
Nix
54 lines
1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, setuptools
|
|
, zope-interface
|
|
, webob
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "repoze-who";
|
|
version = "3.0.0";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
pname = "repoze.who";
|
|
inherit version;
|
|
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";
|
|
changelog = "https://github.com/repoze/repoze.who/blob/${version}/CHANGES.rst";
|
|
license = licenses.bsd0;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|