567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
54 lines
958 B
Nix
54 lines
958 B
Nix
{
|
|
lib,
|
|
adal,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
httpretty,
|
|
mock,
|
|
msrest,
|
|
pytest-asyncio,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "msrestazure";
|
|
version = "0.6.4";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Azure";
|
|
repo = "msrestazure-for-python";
|
|
tag = "v${version}";
|
|
hash = "sha256-ZZVZi0v1ucD2g5FpLaNhfNBf6Ab10fUEcEdkY4ELaEY=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
propagatedBuildInputs = [
|
|
adal
|
|
msrest
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
httpretty
|
|
mock
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "msrest" ];
|
|
|
|
meta = {
|
|
description = "Runtime library 'msrestazure' for AutoRest generated Python clients";
|
|
homepage = "https://azure.microsoft.com/en-us/develop/python/";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [
|
|
bendlas
|
|
];
|
|
};
|
|
}
|