python312Packages.pint-xarray: init at 0.4 (#377344)
[NixPkgs.git] / pkgs / development / python-modules / repoze-who / default.nix
blob6616b1c1e027d431f636bbc88abb965c9c36bb2d
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   setuptools,
6   zope-interface,
7   webob,
8   pytestCheckHook,
9 }:
11 buildPythonPackage rec {
12   pname = "repoze-who";
13   version = "3.0.0";
14   pyproject = true;
16   src = fetchPypi {
17     pname = "repoze.who";
18     inherit version;
19     hash = "sha256-6VWt8AwfCwxxXoKJeaI37Ev37nCCe9l/Xhe/gnYNyzA=";
20   };
22   nativeBuildInputs = [ setuptools ];
24   propagatedBuildInputs = [
25     zope-interface
26     webob
27   ];
29   nativeCheckInputs = [ pytestCheckHook ];
31   # skip failing test
32   # OSError: [Errno 22] Invalid argument
33   preCheck = ''
34     rm repoze/who/plugins/tests/test_htpasswd.py
35   '';
37   pythonImportsCheck = [ "repoze.who" ];
39   pythonNamespaces = [
40     "repoze"
41     "repoze.who"
42     "repoze.who.plugins"
43   ];
45   meta = with lib; {
46     description = "WSGI Authentication Middleware / API";
47     homepage = "http://www.repoze.org";
48     changelog = "https://github.com/repoze/repoze.who/blob/${version}/CHANGES.rst";
49     license = licenses.bsd0;
50     maintainers = [ ];
51   };