2022-06-16 17:23:12 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, cryptography
|
|
|
|
, fetchPypi
|
|
|
|
, grequests
|
|
|
|
, hawkauthlib
|
|
|
|
, mock
|
|
|
|
, pybrowserid
|
|
|
|
, pyjwt
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, requests
|
|
|
|
, responses
|
|
|
|
, setuptools
|
|
|
|
, six
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2022-06-16 17:23:12 +00:00
|
|
|
pname = "pyfxa";
|
2020-08-20 17:08:02 +00:00
|
|
|
version = "0.7.7";
|
2022-06-16 17:23:12 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2022-06-16 17:23:12 +00:00
|
|
|
pname = "PyFxA";
|
|
|
|
inherit version;
|
|
|
|
hash = "sha256-bIXNCM8F9xON7hzyqKHWj9Qot7WtSIkXxwoqdj1lHNs=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2022-06-16 17:23:12 +00:00
|
|
|
cryptography
|
|
|
|
hawkauthlib
|
|
|
|
pybrowserid
|
|
|
|
pyjwt
|
|
|
|
requests
|
|
|
|
setuptools # imports pkg_resources
|
|
|
|
six
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-06-16 17:23:12 +00:00
|
|
|
grequests
|
|
|
|
mock
|
|
|
|
responses
|
|
|
|
pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"fxa"
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTestPaths = [
|
|
|
|
# Requires network access
|
|
|
|
"fxa/tests/test_core.py"
|
|
|
|
"fxa/tests/test_oauth.py"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2022-06-16 17:23:12 +00:00
|
|
|
description = "Firefox Accounts client library";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/mozilla/PyFxA";
|
|
|
|
license = licenses.mpl20;
|
2022-06-16 17:23:12 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|