python3Packages.azure-mgmt-resource: 10.2.0 -> 15.0.0
This commit is contained in:
parent
1f646188a2
commit
7d3b962876
@ -1,36 +1,39 @@
|
|||||||
{ pkgs
|
{ pkgs
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, python
|
, azure-mgmt-core
|
||||||
, azure-mgmt-common
|
, azure-mgmt-common
|
||||||
, isPy3k
|
, isPy3k
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
version = "10.2.0";
|
version = "15.0.0";
|
||||||
pname = "azure-mgmt-resource";
|
pname = "azure-mgmt-resource";
|
||||||
|
disabled = !isPy3k;
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
extension = "zip";
|
extension = "zip";
|
||||||
sha256 = "ddfe4c0c55f0e3fd1f66dd82c1d4a3d872ce124639b9a77fcd172daf464438a5";
|
sha256 = "80ecb69aa21152b924edf481e4b26c641f11aa264120bc322a14284811df9c14";
|
||||||
};
|
};
|
||||||
|
|
||||||
postInstall = if isPy3k then "" else ''
|
propagatedBuildInputs = [
|
||||||
echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/lib/${python.libPrefix}"/site-packages/azure/__init__.py
|
azure-mgmt-common
|
||||||
echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/lib/${python.libPrefix}"/site-packages/azure/mgmt/__init__.py
|
azure-mgmt-core
|
||||||
'';
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [ azure-mgmt-common ];
|
|
||||||
|
|
||||||
# has no tests
|
# has no tests
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
|
pythonNamespaces = [ "azure.mgmt" ];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "azure.mgmt.resource" ];
|
||||||
|
|
||||||
meta = with pkgs.lib; {
|
meta = with pkgs.lib; {
|
||||||
description = "Microsoft Azure SDK for Python";
|
description = "Microsoft Azure SDK for Python";
|
||||||
homepage = "https://github.com/Azure/azure-sdk-for-python";
|
homepage = "https://github.com/Azure/azure-sdk-for-python";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ olcai mwilsoninsight ];
|
maintainers = with maintainers; [ olcai mwilsoninsight jonringer ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user