pythonPackages.azure-common: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov
2018-10-10 12:24:46 -04:00
committed by Frederik Rietdijk
parent 990da90083
commit 1c397de0ff
2 changed files with 34 additions and 20 deletions

View File

@@ -0,0 +1,32 @@
{ pkgs
, buildPythonPackage
, fetchPypi
, azure-nspkg
, isPyPy
, python
}:
buildPythonPackage rec {
version = "1.0.0";
pname = "azure-common";
disabled = isPyPy;
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "074rwwy8zzs7zw3nww5q2wg5lxgdc4rmypp2gfc9mwsz0gb70491";
};
propagatedBuildInputs = [ azure-nspkg ];
postInstall = ''
echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/lib/${python.libPrefix}"/site-packages/azure/__init__.py
'';
meta = with pkgs.lib; {
description = "Microsoft Azure SDK for Python";
homepage = "https://azure.microsoft.com/en-us/develop/python/";
license = licenses.asl20;
maintainers = with maintainers; [ olcai ];
};
}