1{ lib
2, buildPythonPackage
3, fetchPypi
4, azure-common
5, azure-mgmt-nspkg
6, msrestazure
7, python
8, isPy3k
9}:
10
11buildPythonPackage rec {
12 pname = "azure-mgmt-batchai";
13 version = "2.0.0";
14
15 src = fetchPypi {
16 inherit pname version;
17 extension = "zip";
18 sha256 = "f1870b0f97d5001cdb66208e5a236c9717a0ed18b34dbfdb238a828f3ca2a683";
19 };
20
21 propagatedBuildInputs = [
22 msrestazure
23 azure-common
24 azure-mgmt-nspkg
25 ];
26
27 postInstall = lib.optionalString isPy3k ''
28 rm $out/${python.sitePackages}/azure/__init__.py
29 rm $out/${python.sitePackages}/azure/mgmt/__init__.py
30 '';
31
32 # has no tests
33 doCheck = false;
34
35 meta = with lib; {
36 description = "This is the Microsoft Azure Batch AI Management Client Library";
37 homepage = "https://github.com/Azure/azure-sdk-for-python";
38 license = licenses.mit;
39 maintainers = with maintainers; [ mwilsoninsight ];
40 };
41}