From 16e2038be90231ad3cab0ef18ca01146576be7e4 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 4 Dec 2022 14:18:50 +0100 Subject: [PATCH] python310Packages.pydrive2: add changelog to meta - disable on unsupported Python releases - adjust inputs --- .../python-modules/pydrive2/default.nix | 21 ++++++++++++------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/pydrive2/default.nix b/pkgs/development/python-modules/pydrive2/default.nix index 093b738624e2..159679b0515f 100644 --- a/pkgs/development/python-modules/pydrive2/default.nix +++ b/pkgs/development/python-modules/pydrive2/default.nix @@ -5,17 +5,20 @@ , oauth2client , pyopenssl , pyyaml -, six +, pythonOlder }: buildPythonPackage rec { pname = "pydrive2"; version = "1.15.0"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { pname = "PyDrive2"; inherit version; - sha256 = "sha256-OuBrZr+WP0NSSYnIf01ngDlEH+BZmTxnA/szzDxtiuw="; + hash = "sha256-OuBrZr+WP0NSSYnIf01ngDlEH+BZmTxnA/szzDxtiuw="; }; propagatedBuildInputs = [ @@ -23,17 +26,19 @@ buildPythonPackage rec { oauth2client pyopenssl pyyaml - six ]; doCheck = false; - pythonImportsCheck = [ "pydrive2" ]; + pythonImportsCheck = [ + "pydrive2" + ]; - meta = { - description = "Google Drive API Python wrapper library. Maintained fork of PyDrive."; + meta = with lib; { + description = "Google Drive API Python wrapper library"; homepage = "https://github.com/iterative/PyDrive2"; - license = lib.licenses.asl20; - maintainers = with lib.maintainers; [ sei40kr ]; + changelog = "https://github.com/iterative/PyDrive2/releases/tag/${version}"; + license = licenses.asl20; + maintainers = with maintainers; [ sei40kr ]; }; }