1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 msrest,
6 msrestazure,
7 azure-common,
8 azure-mgmt-core,
9 azure-mgmt-nspkg,
10 isPy3k,
11}:
12
13buildPythonPackage rec {
14 pname = "azure-mgmt-sql";
15 version = "3.0.1";
16 format = "setuptools";
17
18 src = fetchPypi {
19 inherit pname version;
20 extension = "zip";
21 sha256 = "129042cc011225e27aee6ef2697d585fa5722e5d1aeb0038af6ad2451a285457";
22 };
23
24 propagatedBuildInputs = [
25 msrest
26 msrestazure
27 azure-common
28 azure-mgmt-core
29 ] ++ lib.optionals (!isPy3k) [ azure-mgmt-nspkg ];
30
31 # has no tests
32 doCheck = false;
33
34 pythonImportsCheck = [ "azure.mgmt.sql" ];
35
36 meta = with lib; {
37 description = "This is the Microsoft Azure SQL Management Client Library";
38 homepage = "https://github.com/Azure/azure-sdk-for-python";
39 license = licenses.mit;
40 maintainers = with maintainers; [ maxwilson ];
41 };
42}