Unverified Commit 2fe6f88e authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

python312Packages.drivelib: refactor (#340065)

parents 39ffb3c4 4ba7c4d3
Loading
Loading
Loading
Loading
+24 −9
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchPypi,
  expiringdict,
  fetchPypi,
  google-api-python-client,
  google-auth-httplib2,
  google-auth-oauthlib,
  google-api-python-client,
  pythonOlder,
  setuptools,
  versioneer,
}:

buildPythonPackage rec {
  pname = "drivelib";
  version = "0.3.0";
  format = "setuptools";
  pyproject = true;

  disabled = pythonOlder "3.8";

  src = fetchPypi {
    inherit pname version;
    sha256 = "1bz3dn6wm9mlm2w8czwjmhvf3ws3iggr57hvd8z8acl1qafr2g4m";
    hash = "sha256-lTyRncKBMoU+ahuekt+LQ/PhNqySf4a4qLSmyo1t468=";
  };

  propagatedBuildInputs = [
  postPatch = ''
    # Remove vendorized versioneer.py
    rm versioneer.py
  '';

  build-system = [
    setuptools
    versioneer
  ];

  dependencies = [
    expiringdict
    google-api-python-client
    google-auth-oauthlib
    google-auth-httplib2
    expiringdict
    google-auth-oauthlib
  ];

  # tests depend on a google auth token
  # Tests depend on a google auth token
  doCheck = false;

  pythonImportsCheck = [ "drivelib" ];

  meta = with lib; {
    description = "Easy access to the most common Google Drive API calls";
    homepage = "https://pypi.org/project/drivelib/";
    homepage = "https://github.com/Lykos153/python-drivelib";
    license = licenses.gpl3Only;
    maintainers = with maintainers; [ gravndal ];
  };