mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
pythonPackages.azure: refactor move to python-modules
This commit is contained in:
parent
08505d87d3
commit
990da90083
2 changed files with 41 additions and 19 deletions
39
pkgs/development/python-modules/azure/default.nix
Normal file
39
pkgs/development/python-modules/azure/default.nix
Normal file
|
@ -0,0 +1,39 @@
|
|||
{ pkgs
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, dateutil
|
||||
, futures
|
||||
, pyopenssl
|
||||
, requests
|
||||
, pythonOlder
|
||||
, isPy3k
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "0.11.0";
|
||||
pname = "azure";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
extension = "zip";
|
||||
sha256 = "89c20b2efaaed3c6f56345d55c32a8d4e7d2a16c032d0acb92f8f490c508fe24";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ dateutil pyopenssl requests ]
|
||||
++ pkgs.lib.optionals (!isPy3k) [ futures ];
|
||||
|
||||
# depends on futures for python 3 (not necissary)
|
||||
patchPhase = if (!isPy3k) then "" else ''
|
||||
sed -i -e "s/'futures'//" setup.py
|
||||
'';
|
||||
|
||||
# tests are not packaged in pypi release
|
||||
doCheck = false;
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
|
@ -216,6 +216,8 @@ in {
|
|||
|
||||
ansiconv = callPackage ../development/python-modules/ansiconv { };
|
||||
|
||||
azure = callPackage ../development/python-modules/azure { };
|
||||
|
||||
backports_csv = callPackage ../development/python-modules/backports_csv {};
|
||||
|
||||
backports-shutil-which = callPackage ../development/python-modules/backports-shutil-which {};
|
||||
|
@ -767,25 +769,6 @@ in {
|
|||
|
||||
noise = callPackage ../development/python-modules/noise {};
|
||||
|
||||
azure = buildPythonPackage rec {
|
||||
version = "0.11.0";
|
||||
name = "azure-${version}";
|
||||
disabled = pythonOlder "2.7";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "mirror://pypi/a/azure/${name}.zip";
|
||||
sha256 = "89c20b2efaaed3c6f56345d55c32a8d4e7d2a16c032d0acb92f8f490c508fe24";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = with self; [ dateutil futures pyopenssl requests ];
|
||||
|
||||
meta = {
|
||||
description = "Microsoft Azure SDK for Python";
|
||||
homepage = "https://azure.microsoft.com/en-us/develop/python/";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ olcai ];
|
||||
};
|
||||
};
|
||||
|
||||
azure-nspkg = buildPythonPackage rec {
|
||||
version = "1.0.0";
|
||||
|
|
Loading…
Reference in a new issue