about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2024-03-17 08:33:00 +0100
committerGitHub <noreply@github.com>2024-03-17 08:33:00 +0100
commit35f6a4a2e7f084dbf35677fba1f1f2361cae0d08 (patch)
tree95d5f73dace515ff4fed0f242bc1c76e0439157d
parentab2b42656eb1b75db04c7de82d8098030599dd25 (diff)
downloadnixlib-35f6a4a2e7f084dbf35677fba1f1f2361cae0d08.tar
nixlib-35f6a4a2e7f084dbf35677fba1f1f2361cae0d08.tar.gz
nixlib-35f6a4a2e7f084dbf35677fba1f1f2361cae0d08.tar.bz2
nixlib-35f6a4a2e7f084dbf35677fba1f1f2361cae0d08.tar.lz
nixlib-35f6a4a2e7f084dbf35677fba1f1f2361cae0d08.tar.xz
nixlib-35f6a4a2e7f084dbf35677fba1f1f2361cae0d08.tar.zst
nixlib-35f6a4a2e7f084dbf35677fba1f1f2361cae0d08.zip
python311Packages.paypalrestsdk: refactor
-rw-r--r--pkgs/development/python-modules/paypalrestsdk/default.nix26
1 files changed, 16 insertions, 10 deletions
diff --git a/pkgs/development/python-modules/paypalrestsdk/default.nix b/pkgs/development/python-modules/paypalrestsdk/default.nix
index 1b6d57830fc1..ed6e60a19044 100644
--- a/pkgs/development/python-modules/paypalrestsdk/default.nix
+++ b/pkgs/development/python-modules/paypalrestsdk/default.nix
@@ -1,11 +1,9 @@
-{ buildPythonPackage
+{ lib
+, buildPythonPackage
 , fetchPypi
-
-# build-system
 , setuptools
-
-# dependencies
 , pyopenssl
+, pythonOlder
 , requests
 , six
 }:
@@ -15,9 +13,11 @@ buildPythonPackage rec {
   version = "1.13.3";
   pyproject = true;
 
+  disabled = pythonOlder "3.7";
+
   src = fetchPypi {
     inherit pname version;
-    sha256 = "sha256-2sI2SSqawSYKdgAUouVqs4sJ2BQylbXollRTWbYf7dY=";
+    hash = "sha256-2sI2SSqawSYKdgAUouVqs4sJ2BQylbXollRTWbYf7dY=";
   };
 
   build-system = [
@@ -30,15 +30,21 @@ buildPythonPackage rec {
     six
   ];
 
-  doCheck = false; # no tests
+  # Module has no tests
+  doCheck = false;
 
   pythonImportsCheck = [
     "paypalrestsdk"
   ];
 
-  meta = {
-    homepage = "https://developer.paypal.com/";
+  meta = with lib; {
     description = "Python APIs to create, process and manage payment";
-    license = "PayPal SDK License";
+    homepage = "https://github.com/paypal/PayPal-Python-SDK";
+    changelog = "https://github.com/paypal/PayPal-Python-SDK/blob/master/CHANGELOG.md";
+    license = {
+      fullName = "PayPal SDK License";
+      url = "https://github.com/paypal/PayPal-Python-SDK/blob/master/LICENSE";
+    };
+    maintainers = with maintainers; [ ];
   };
 }