pythonPackages.azure-common: refactor
This commit is contained in:
parent
d4d1a27427
commit
53d9338c9e
@ -4,6 +4,7 @@
|
|||||||
, azure-nspkg
|
, azure-nspkg
|
||||||
, isPyPy
|
, isPyPy
|
||||||
, python
|
, python
|
||||||
|
, isPy3k
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
@ -17,16 +18,20 @@ buildPythonPackage rec {
|
|||||||
sha256 = "25d696d2affbf5fe9b13aebe66271fce545e673e7e1eeaaec2d73599ba639d63";
|
sha256 = "25d696d2affbf5fe9b13aebe66271fce545e673e7e1eeaaec2d73599ba639d63";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ azure-nspkg ];
|
propagatedBuildInputs = [
|
||||||
|
azure-nspkg
|
||||||
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = if isPy3k then "" else ''
|
||||||
echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/lib/${python.libPrefix}"/site-packages/azure/__init__.py
|
echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/lib/${python.libPrefix}"/site-packages/azure/__init__.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
meta = with pkgs.lib; {
|
meta = with pkgs.lib; {
|
||||||
description = "Microsoft Azure SDK for Python";
|
description = "This is the Microsoft Azure common code";
|
||||||
homepage = "https://azure.microsoft.com/en-us/develop/python/";
|
homepage = https://github.com/Azure/azure-sdk-for-python/tree/master/azure-common;
|
||||||
license = licenses.asl20;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ olcai ];
|
maintainers = with maintainers; [ olcai mwilsoninsight ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user