Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 52 lines 1.0 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 setuptools, 6 zope-interface, 7 webob, 8 pytestCheckHook, 9}: 10 11buildPythonPackage rec { 12 pname = "repoze-who"; 13 version = "3.0.0"; 14 pyproject = true; 15 16 src = fetchPypi { 17 pname = "repoze.who"; 18 inherit version; 19 hash = "sha256-6VWt8AwfCwxxXoKJeaI37Ev37nCCe9l/Xhe/gnYNyzA="; 20 }; 21 22 nativeBuildInputs = [ setuptools ]; 23 24 propagatedBuildInputs = [ 25 zope-interface 26 webob 27 ]; 28 29 nativeCheckInputs = [ pytestCheckHook ]; 30 31 # skip failing test 32 # OSError: [Errno 22] Invalid argument 33 preCheck = '' 34 rm repoze/who/plugins/tests/test_htpasswd.py 35 ''; 36 37 pythonImportsCheck = [ "repoze.who" ]; 38 39 pythonNamespaces = [ 40 "repoze" 41 "repoze.who" 42 "repoze.who.plugins" 43 ]; 44 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 }; 52}