1{ lib
2, buildPythonPackage
3, cryptography
4, fetchPypi
5, grequests
6, hawkauthlib
7, mock
8, pybrowserid
9, pyjwt
10, pytestCheckHook
11, pythonOlder
12, requests
13, responses
14, setuptools
15, six
16}:
17
18buildPythonPackage rec {
19 pname = "pyfxa";
20 version = "0.7.7";
21 format = "setuptools";
22
23 disabled = pythonOlder "3.7";
24
25 src = fetchPypi {
26 pname = "PyFxA";
27 inherit version;
28 hash = "sha256-bIXNCM8F9xON7hzyqKHWj9Qot7WtSIkXxwoqdj1lHNs=";
29 };
30
31 propagatedBuildInputs = [
32 cryptography
33 hawkauthlib
34 pybrowserid
35 pyjwt
36 requests
37 setuptools # imports pkg_resources
38 six
39 ];
40
41 nativeCheckInputs = [
42 grequests
43 mock
44 responses
45 pytestCheckHook
46 ];
47
48 pythonImportsCheck = [
49 "fxa"
50 ];
51
52 disabledTestPaths = [
53 # Requires network access
54 "fxa/tests/test_core.py"
55 "fxa/tests/test_oauth.py"
56 ];
57
58 meta = with lib; {
59 description = "Firefox Accounts client library";
60 homepage = "https://github.com/mozilla/PyFxA";
61 license = licenses.mpl20;
62 maintainers = with maintainers; [ ];
63 };
64}