pythonPackages.azure-servicemanagement-lagacy: refactor move to python-modules
This commit is contained in:
parent
5d26b1b9c0
commit
9a5aaf3421
@ -0,0 +1,31 @@
|
|||||||
|
{ pkgs
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, azure-common
|
||||||
|
, requests
|
||||||
|
, python
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
version = "0.20.1";
|
||||||
|
pname = "azure-servicemanagement-legacy";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
extension = "zip";
|
||||||
|
sha256 = "17dwrp99sx5x9cm4vldkaxhki9gbd6dlafa0lpr2n92xhh2838zs";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ azure-common requests ];
|
||||||
|
|
||||||
|
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 ];
|
||||||
|
};
|
||||||
|
}
|
@ -236,6 +236,8 @@ in {
|
|||||||
|
|
||||||
azure-storage = callPackage ../development/python-modules/azure-storage { };
|
azure-storage = callPackage ../development/python-modules/azure-storage { };
|
||||||
|
|
||||||
|
azure-servicemanagement-legacy = callPackage ../development/python-modules/azure-servicemanagement-legacy { };
|
||||||
|
|
||||||
backports_csv = callPackage ../development/python-modules/backports_csv {};
|
backports_csv = callPackage ../development/python-modules/backports_csv {};
|
||||||
|
|
||||||
backports-shutil-which = callPackage ../development/python-modules/backports-shutil-which {};
|
backports-shutil-which = callPackage ../development/python-modules/backports-shutil-which {};
|
||||||
@ -787,25 +789,6 @@ in {
|
|||||||
|
|
||||||
noise = callPackage ../development/python-modules/noise {};
|
noise = callPackage ../development/python-modules/noise {};
|
||||||
|
|
||||||
azure-servicemanagement-legacy = buildPythonPackage rec {
|
|
||||||
version = "0.20.1";
|
|
||||||
name = "azure-servicemanagement-legacy-${version}";
|
|
||||||
src = pkgs.fetchurl {
|
|
||||||
url = mirror://pypi/a/azure-servicemanagement-legacy/azure-servicemanagement-legacy-0.20.1.zip;
|
|
||||||
sha256 = "17dwrp99sx5x9cm4vldkaxhki9gbd6dlafa0lpr2n92xhh2838zs";
|
|
||||||
};
|
|
||||||
propagatedBuildInputs = with self; [ azure-common requests ];
|
|
||||||
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 ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
backcall = callPackage ../development/python-modules/backcall { };
|
backcall = callPackage ../development/python-modules/backcall { };
|
||||||
|
|
||||||
backports_abc = callPackage ../development/python-modules/backports_abc { };
|
backports_abc = callPackage ../development/python-modules/backports_abc { };
|
||||||
|
Loading…
Reference in New Issue
Block a user