From 21c6880e258feecad7284a8339fb6de62ee4e1a6 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 13 Aug 2022 20:11:38 +0200 Subject: [PATCH] python310Packages.aliyun-python-sdk-cdn: init at 3.7.1 --- .../aliyun-python-sdk-cdn/default.nix | 37 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 39 insertions(+) create mode 100644 pkgs/development/python-modules/aliyun-python-sdk-cdn/default.nix diff --git a/pkgs/development/python-modules/aliyun-python-sdk-cdn/default.nix b/pkgs/development/python-modules/aliyun-python-sdk-cdn/default.nix new file mode 100644 index 000000000000..7a34db334fab --- /dev/null +++ b/pkgs/development/python-modules/aliyun-python-sdk-cdn/default.nix @@ -0,0 +1,37 @@ +{ lib +, aliyun-python-sdk-core +, buildPythonPackage +, fetchPypi +, pythonOlder +}: + +buildPythonPackage rec { + pname = "aliyun-python-sdk-cdn"; + version = "3.7.1"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-GAY4o9lr+1m8g1T7EhL5jLjEdfMWC/1vJ3UC4PQzvjI="; + }; + + propagatedBuildInputs = [ + aliyun-python-sdk-core + ]; + + # All components are stored in a mono repo + doCheck = false; + + pythonImportsCheck = [ + "aliyunsdkcdn" + ]; + + meta = with lib; { + description = "CDN module of Aliyun Python SDK"; + homepage = "https://github.com/aliyun/aliyun-openapi-python-sdk"; + license = licenses.asl20; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index bbadd885f0ac..6060c1be63e4 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -487,6 +487,8 @@ in { algebraic-data-types = callPackage ../development/python-modules/algebraic-data-types { }; + aliyun-python-sdk-cdn = callPackage ../development/python-modules/aliyun-python-sdk-cdn { }; + aliyun-python-sdk-core = callPackage ../development/python-modules/aliyun-python-sdk-core { }; aliyun-python-sdk-dbfs = callPackage ../development/python-modules/aliyun-python-sdk-dbfs { };