depot/third_party/nixpkgs/pkgs/development/python-modules/pyfxa/default.nix

64 lines
1 KiB
Nix

{
lib,
buildPythonPackage,
cryptography,
fetchPypi,
grequests,
hawkauthlib,
mock,
pybrowserid,
pyjwt,
pytestCheckHook,
pythonOlder,
requests,
responses,
hatchling,
parameterized,
}:
buildPythonPackage rec {
pname = "pyfxa";
version = "0.7.9";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-dTsWFWaqX6YypNJz9WSlcxJlYOstmTu2ZgOG3RPSViw=";
};
build-system = [ hatchling ];
dependencies = [
cryptography
hawkauthlib
pybrowserid
pyjwt
requests
];
nativeCheckInputs = [
grequests
mock
responses
pytestCheckHook
parameterized
];
pythonImportsCheck = [ "fxa" ];
disabledTestPaths = [
# Requires network access
"fxa/tests/test_core.py"
"fxa/tests/test_oauth.py"
];
meta = with lib; {
description = "Firefox Accounts client library";
mainProgram = "fxa-client";
homepage = "https://github.com/mozilla/PyFxA";
license = licenses.mpl20;
maintainers = [ ];
};
}