1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 requests, 7 webob, 8 unittestCheckHook, 9}: 10 11buildPythonPackage rec { 12 pname = "hawkauthlib"; 13 version = "0.1.1"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "mozilla-services"; 18 repo = "hawkauthlib"; 19 rev = "refs/tags/v${version}"; 20 hash = "sha256-UW++gLQX1U4jFwccL+O5wl2r/d2OZ5Ug0wcnSfqtIVc="; 21 }; 22 23 postPatch = '' 24 substituteInPlace hawkauthlib/tests/* \ 25 --replace-warn 'assertEquals' 'assertEqual' 26 ''; 27 28 build-system = [ setuptools ]; 29 30 dependencies = [ 31 requests 32 webob 33 ]; 34 35 pythonImportsCheck = [ "hawkauthlib" ]; 36 37 nativeCheckInputs = [ unittestCheckHook ]; 38 39 meta = with lib; { 40 homepage = "https://github.com/mozilla-services/hawkauthlib"; 41 description = "Hawk Access Authentication protocol"; 42 license = licenses.mpl20; 43 maintainers = with maintainers; [ ]; 44 }; 45}