pythonPackages.azure-common: refactor move to python-modules
This commit is contained in:
parent
990da90083
commit
1c397de0ff
32
pkgs/development/python-modules/azure-common/default.nix
Normal file
32
pkgs/development/python-modules/azure-common/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -218,6 +218,8 @@ in {
|
|||
|
||||
azure = callPackage ../development/python-modules/azure { };
|
||||
|
||||
azure-common = callPackage ../development/python-modules/azure-common { };
|
||||
|
||||
backports_csv = callPackage ../development/python-modules/backports_csv {};
|
||||
|
||||
backports-shutil-which = callPackage ../development/python-modules/backports-shutil-which {};
|
||||
|
@ -785,26 +787,6 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
azure-common = buildPythonPackage rec {
|
||||
version = "1.0.0";
|
||||
name = "azure-common-${version}";
|
||||
disabled = isPyPy;
|
||||
src = pkgs.fetchurl {
|
||||
url = mirror://pypi/a/azure-common/azure-common-1.0.0.zip;
|
||||
sha256 = "074rwwy8zzs7zw3nww5q2wg5lxgdc4rmypp2gfc9mwsz0gb70491";
|
||||
};
|
||||
propagatedBuildInputs = with self; [ azure-nspkg ];
|
||||
postInstall = ''
|
||||
echo "__import__('pkg_resources').declare_namespace(__name__)" >> "$out/lib/${python.libPrefix}"/site-packages/azure/__init__.py
|
||||
'';
|
||||
meta = {
|
||||
description = "Microsoft Azure SDK for Python";
|
||||
homepage = "https://azure.microsoft.com/en-us/develop/python/";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ olcai ];
|
||||
};
|
||||
};
|
||||
|
||||
azure-mgmt-common = buildPythonPackage rec {
|
||||
version = "0.20.0";
|
||||
name = "azure-mgmt-common-${version}";
|
||||
|
|
Loading…
Reference in a new issue