1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 requests, 7 webob, 8 unittestCheckHook, 9}: 10 11buildPythonPackage rec { 12 pname = "hawkauthlib"; 13 version = "2.0.0"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "mozilla-services"; 18 repo = "hawkauthlib"; 19 tag = "v${version}"; 20 hash = "sha256-dFBGrk7vdZMNTuWvXXWXA4iF/vmiUnK9ds8edN2Yt10="; 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 = [ ]; 44 }; 45}