1{ lib
2, buildPythonPackage
3, cryptography
4, fetchPypi
5, jmespath
6, pythonOlder
7, pythonRelaxDepsHook
8}:
9
10buildPythonPackage rec {
11 pname = "aliyun-python-sdk-core";
12 version = "2.14.0";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-yAaBWkj/24lMxbzhW4JZuaMBLMDNoBvi89+7hE8/TyE=";
20 };
21
22 nativeBuildInputs = [
23 pythonRelaxDepsHook
24 ];
25
26 propagatedBuildInputs = [
27 cryptography
28 jmespath
29 ];
30
31 # All components are stored in a mono repo
32 doCheck = false;
33
34 pythonRelaxDeps = true;
35
36 pythonImportsCheck = [
37 "aliyunsdkcore"
38 ];
39
40 meta = with lib; {
41 description = "Core module of Aliyun Python SDK";
42 homepage = "https://github.com/aliyun/aliyun-openapi-python-sdk";
43 changelog = "https://github.com/aliyun/aliyun-openapi-python-sdk/blob/master/aliyun-python-sdk-core/ChangeLog.txt";
44 license = licenses.asl20;
45 maintainers = with maintainers; [ fab ];
46 };
47}