mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-24 03:43:53 +03:00
Make azure-mgmt-resource work with requests 2.11.x. We should update the azure python packages, however, that is a much bigger effort. This is needed to make sure nixops keeps working with Azure.
(cherry picked from commit 81f2bde0a2
)
This commit is contained in:
parent
0688fdfc05
commit
c07f1589bf
@ -1762,6 +1762,11 @@ in {
|
||||
url = mirror://pypi/a/azure-mgmt-resource/azure-mgmt-resource-0.20.1.zip;
|
||||
sha256 = "0slh9qfm5nfacrdm3lid0sr8kwqzgxvrwf27laf9v38kylkfqvml";
|
||||
};
|
||||
preConfigure = ''
|
||||
# Patch to make this package work on requests >= 2.11.x
|
||||
# CAN BE REMOVED ON NEXT PACKAGE UPDATE
|
||||
sed -i 's|len(request_content)|str(len(request_content))|' azure/mgmt/resource/resourcemanagement.py
|
||||
'';
|
||||
postInstall = ''
|
||||
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/mgmt/__init__.py
|
||||
|
Loading…
Reference in New Issue
Block a user