Merge papers: 47.0 -> 47.3 (#379765)
[NixPkgs.git] / pkgs / development / python-modules / msal-extensions / default.nix
blobcedd3f2a1c380c49c4d226951bd664243dff7f2d
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   msal,
6   portalocker,
7   setuptools,
8   pythonOlder,
9   pytestCheckHook,
12 buildPythonPackage rec {
13   pname = "msal-extensions";
14   version = "1.2.0";
15   pyproject = true;
17   disabled = pythonOlder "3.7";
19   src = fetchFromGitHub {
20     owner = "AzureAD";
21     repo = "microsoft-authentication-extensions-for-python";
22     tag = version;
23     hash = "sha256-javYE1XDW1yrMZ/BLqIu/pUXChlBZlACctbD2RfWuis=";
24   };
26   build-system = [ setuptools ];
28   pythonRelaxDeps = [ "portalocker" ];
30   dependencies = [
31     msal
32     portalocker
33   ];
35   nativeCheckInputs = [ pytestCheckHook ];
37   disabledTests = [
38     # `from gi.repository import Secret` fails to find libsecret
39     "test_token_cache_roundtrip_with_persistence_builder"
40     "test_libsecret_persistence"
41     "test_nonexistent_libsecret_persistence"
42   ];
44   pythonImportsCheck = [ "msal_extensions" ];
46   meta = with lib; {
47     description = "Microsoft Authentication Library Extensions (MSAL-Extensions) for Python";
48     homepage = "https://github.com/AzureAD/microsoft-authentication-extensions-for-python";
49     changelog = "https://github.com/AzureAD/microsoft-authentication-extensions-for-python/releases/tag/${version}";
50     license = licenses.mit;
51     maintainers = with maintainers; [ kamadorueda ];
52   };