1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 setuptools, 6 requests, 7 unittestCheckHook, 8 mock, 9}: 10 11buildPythonPackage rec { 12 pname = "pybrowserid"; 13 version = "0.14.0"; 14 pyproject = true; 15 16 src = fetchPypi { 17 pname = "PyBrowserID"; 18 inherit version; 19 hash = "sha256-bCJ2aeh8wleWrnb2oO9lAlUoyK2C01Jnn6mj5WY6ceM="; 20 }; 21 22 patches = [ ./darwin_fix.patch ]; 23 24 postPatch = '' 25 substituteInPlace browserid/tests/* \ 26 --replace-warn 'assertEquals' 'assertEqual' 27 ''; 28 29 build-system = [ setuptools ]; 30 31 dependencies = [ requests ]; 32 33 pythonImportsCheck = [ "browserid" ]; 34 35 nativeCheckInputs = [ 36 unittestCheckHook 37 mock 38 ]; 39 40 meta = with lib; { 41 description = "Python library for the BrowserID Protocol"; 42 homepage = "https://github.com/mozilla/PyBrowserID"; 43 license = licenses.mpl20; 44 maintainers = [ ]; 45 }; 46}