nixpkgs/pkgs/development/python-modules/pygithub/default.nix
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

54 lines
1,023 B
Nix

{
lib,
buildPythonPackage,
deprecated,
fetchFromGitHub,
pynacl,
typing-extensions,
pyjwt,
requests,
setuptools,
setuptools-scm,
urllib3,
}:
buildPythonPackage rec {
pname = "pygithub";
version = "2.8.1";
pyproject = true;
src = fetchFromGitHub {
owner = "PyGithub";
repo = "PyGithub";
tag = "v${version}";
hash = "sha256-36taxa95WrpQw0UUlmnWX4XFslAAuuoousxNh5O5uDA=";
};
build-system = [
setuptools
setuptools-scm
];
dependencies = [
deprecated
pyjwt
pynacl
requests
typing-extensions
urllib3
]
++ pyjwt.optional-dependencies.crypto;
# Test suite makes REST calls against github.com
doCheck = false;
pythonImportsCheck = [ "github" ];
meta = {
description = "Python library to access the GitHub API v3";
homepage = "https://github.com/PyGithub/PyGithub";
changelog = "https://github.com/PyGithub/PyGithub/raw/${src.tag}/doc/changes.rst";
license = lib.licenses.lgpl3Plus;
maintainers = [ ];
};
}