Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / pyfxa / default.nix
blob0df1538c9cedcd74a248967d5e98c8074bca8ef0
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
18 buildPythonPackage rec {
19   pname = "pyfxa";
20   version = "0.7.7";
21   format = "setuptools";
23   disabled = pythonOlder "3.7";
25   src = fetchPypi {
26     pname = "PyFxA";
27     inherit version;
28     hash = "sha256-bIXNCM8F9xON7hzyqKHWj9Qot7WtSIkXxwoqdj1lHNs=";
29   };
31   propagatedBuildInputs = [
32     cryptography
33     hawkauthlib
34     pybrowserid
35     pyjwt
36     requests
37     setuptools # imports pkg_resources
38     six
39   ];
41   nativeCheckInputs = [
42     grequests
43     mock
44     responses
45     pytestCheckHook
46   ];
48   pythonImportsCheck = [
49     "fxa"
50   ];
52   disabledTestPaths = [
53     # Requires network access
54     "fxa/tests/test_core.py"
55     "fxa/tests/test_oauth.py"
56   ];
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   };