nixpkgs/pkgs/development/python-modules/pyfxa/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

65 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, cryptography
, fetchPypi
, grequests
, hawkauthlib
, mock
, pybrowserid
, pyjwt
, pytestCheckHook
, pythonOlder
, requests
, responses
, setuptools
, six
}:
buildPythonPackage rec {
pname = "pyfxa";
version = "0.7.8";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
pname = "PyFxA";
inherit version;
hash = "sha256-DMFZl1hbYNaScOTWkAbK2nKti6wD5SS5A30q7TW5vO4=";
};
propagatedBuildInputs = [
cryptography
hawkauthlib
pybrowserid
pyjwt
requests
setuptools # imports pkg_resources
six
];
nativeCheckInputs = [
grequests
mock
responses
pytestCheckHook
];
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 = with maintainers; [ ];
};
}