Files
nixpkgs/pkgs/development/python-modules/drivelib/default.nix
T
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

56 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
expiringdict,
fetchPypi,
google-api-python-client,
google-auth,
google-auth-httplib2,
google-auth-oauthlib,
oauth2client,
setuptools,
versioneer,
}:
buildPythonPackage rec {
pname = "drivelib";
version = "0.3.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-lTyRncKBMoU+ahuekt+LQ/PhNqySf4a4qLSmyo1t468=";
};
postPatch = ''
# Remove vendorized versioneer.py
rm versioneer.py
'';
build-system = [
setuptools
versioneer
];
dependencies = [
expiringdict
google-api-python-client
google-auth
google-auth-httplib2
google-auth-oauthlib
oauth2client
];
# Tests depend on a google auth token
doCheck = false;
pythonImportsCheck = [ "drivelib" ];
meta = {
description = "Easy access to the most common Google Drive API calls";
homepage = "https://github.com/Lykos153/python-drivelib";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ gravndal ];
};
}