1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-20 21:17:46 +00:00
nixpkgs/pkgs/development/python-modules/azure-storage/default.nix

36 lines
853 B
Nix

{ pkgs
, buildPythonPackage
, fetchPypi
, python
, azure-common
, futures
, dateutil
, requests
, isPy3k
}:
buildPythonPackage rec {
version = "0.20.3";
pname = "azure-storage";
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "06bmw6k2000kln5jwk5r9bgcalqbyvqirmdh9gq4s6nb4fv3c0jb";
};
propagatedBuildInputs = [ azure-common dateutil requests ]
++ pkgs.lib.optionals (!isPy3k) [ futures ];
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 ];
};
}