blob: 07d6de4e67e688730d4272b5b2b54049af57f624 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
{ 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; [ ];
};
}
|