summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/azure-mgmt-resource/default.nix
diff options
context:
space:
mode:
authorHerwig Hochleitner <herwig@bendlas.net>2018-12-20 00:10:19 +0100
committerHerwig Hochleitner <herwig@bendlas.net>2019-03-10 22:12:40 +0100
commit7642bfc08529c1b71668e019e4505cefb66349e7 (patch)
treebdf3c94defda26c802c3082a45c6eb1c6f0d3499 /pkgs/development/python-modules/azure-mgmt-resource/default.nix
parentpythonPackages.msrestazure: init 0.6.0 (diff)
downloadnixpkgs-origin/fix-azure-mgmt.tar.gz
pythonPackage.azure-mgmt-*: fix buildsorigin/fix-azure-mgmt
see https://github.com/NixOS/nixpkgs/issues/52547
Diffstat (limited to 'pkgs/development/python-modules/azure-mgmt-resource/default.nix')
-rw-r--r--pkgs/development/python-modules/azure-mgmt-resource/default.nix6
1 files changed, 0 insertions, 6 deletions
diff --git a/pkgs/development/python-modules/azure-mgmt-resource/default.nix b/pkgs/development/python-modules/azure-mgmt-resource/default.nix
index afcc58ec7e40..e5f5b38509f4 100644
--- a/pkgs/development/python-modules/azure-mgmt-resource/default.nix
+++ b/pkgs/development/python-modules/azure-mgmt-resource/default.nix
@@ -16,12 +16,6 @@ buildPythonPackage rec {
sha256 = "aef8573066026db04ed3e7c5e727904e42f6462b6421c2e8a3646e4c4f8128be";
};
- 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