nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 61 lines 1.0 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 cryptography, 5 fetchPypi, 6 grequests, 7 hawkauthlib, 8 mock, 9 pybrowserid, 10 pyjwt, 11 pytestCheckHook, 12 requests, 13 responses, 14 hatchling, 15 parameterized, 16}: 17 18buildPythonPackage rec { 19 pname = "pyfxa"; 20 version = "0.8.1"; 21 pyproject = true; 22 23 src = fetchPypi { 24 inherit pname version; 25 hash = "sha256-3zxXWzFOjWcnX8hAQpRzGlzTmnXjZjn9jF+MdsHuGkw="; 26 }; 27 28 build-system = [ hatchling ]; 29 30 dependencies = [ 31 cryptography 32 hawkauthlib 33 pybrowserid 34 pyjwt 35 requests 36 ]; 37 38 nativeCheckInputs = [ 39 grequests 40 mock 41 responses 42 pytestCheckHook 43 parameterized 44 ]; 45 46 pythonImportsCheck = [ "fxa" ]; 47 48 disabledTestPaths = [ 49 # Requires network access 50 "fxa/tests/test_core.py" 51 "fxa/tests/test_oauth.py" 52 ]; 53 54 meta = { 55 description = "Firefox Accounts client library"; 56 mainProgram = "fxa-client"; 57 homepage = "https://github.com/mozilla/PyFxA"; 58 license = lib.licenses.mpl20; 59 maintainers = [ ]; 60 }; 61}