mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 02:42:59 +00:00
5356420466
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \ -e 's!with lib.maintainers; \[ *\];![ ];!' \ -e 's!with maintainers; \[ *\];![ ];!'
56 lines
1.1 KiB
Nix
56 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
httpretty,
|
|
pyjwt,
|
|
pytestCheckHook,
|
|
python-dateutil,
|
|
requests,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "adal";
|
|
version = "1.2.7";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "AzureAD";
|
|
repo = "azure-activedirectory-library-for-python";
|
|
rev = version;
|
|
hash = "sha256-HE8/P0aohoZNeMdcQVKdz6M31FMrjsd7oVytiaD0idI=";
|
|
};
|
|
|
|
postPatch = ''
|
|
sed -i '/cryptography/d' setup.py
|
|
'';
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
pyjwt
|
|
python-dateutil
|
|
requests
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
httpretty
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTests = [
|
|
# AssertionError: 'Mex [23 chars]tp error:...
|
|
"test_failed_request"
|
|
];
|
|
|
|
pythonImportsCheck = [ "adal" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python module to authenticate to Azure Active Directory (AAD) in order to access AAD protected web resources";
|
|
homepage = "https://github.com/AzureAD/azure-activedirectory-library-for-python";
|
|
license = licenses.mit;
|
|
maintainers = [ ];
|
|
};
|
|
}
|