Files
nixpkgs/pkgs/development/python-modules/pygithub/default.nix
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

58 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
deprecated,
fetchFromGitHub,
pynacl,
typing-extensions,
pyjwt,
pythonOlder,
requests,
setuptools,
setuptools-scm,
urllib3,
}:
buildPythonPackage rec {
pname = "pygithub";
version = "2.8.1";
pyproject = true;
disabled = pythonOlder "3.8";
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 = [ ];
};
}