2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, msrestazure
|
|
|
|
, azure-common
|
2021-01-15 22:18:51 +00:00
|
|
|
, azure-mgmt-core
|
2020-04-24 23:36:52 +00:00
|
|
|
, azure-mgmt-nspkg
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "azure-mgmt-relay";
|
2021-09-18 10:52:07 +00:00
|
|
|
version = "1.1.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
extension = "zip";
|
2021-09-18 10:52:07 +00:00
|
|
|
sha256 = "c93b7550e64b6734bf23ce57ca974a3ea929b734c58d1fe3669728c4fd2d2eb3";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
msrestazure
|
|
|
|
azure-common
|
2021-01-15 22:18:51 +00:00
|
|
|
azure-mgmt-core
|
2020-04-24 23:36:52 +00:00
|
|
|
azure-mgmt-nspkg
|
|
|
|
];
|
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
preBuild = ''
|
|
|
|
rm -f azure_bdist_wheel.py
|
|
|
|
substituteInPlace setup.cfg \
|
|
|
|
--replace "azure-namespace-package = azure-mgmt-nspkg" ""
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
pythonNamespaces = [ "azure.mgmt" ];
|
|
|
|
|
|
|
|
# has no tests
|
|
|
|
doCheck = false;
|
2021-01-15 22:18:51 +00:00
|
|
|
pythonImportsCheck = [ "azure.mgmt.relay" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "This is the Microsoft Azure Relay Client Library";
|
|
|
|
homepage = "https://github.com/Azure/azure-sdk-for-python";
|
|
|
|
license = licenses.mit;
|
2020-11-19 00:13:47 +00:00
|
|
|
maintainers = with maintainers; [ maxwilson ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|