depot/third_party/nixpkgs/pkgs/development/python-modules/pygithub/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

56 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
deprecated,
fetchFromGitHub,
pynacl,
typing-extensions,
pyjwt,
pythonOlder,
requests,
setuptools,
setuptools-scm,
urllib3,
}:
buildPythonPackage rec {
pname = "pygithub";
version = "2.4.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "PyGithub";
repo = "PyGithub";
rev = "refs/tags/v${version}";
hash = "sha256-VM3xxLa4MlR3vTpeOunsq4/bxZhuKXNKFZbFVul1cMw=";
};
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 = with lib; {
description = "Python library to access the GitHub API v3";
homepage = "https://github.com/PyGithub/PyGithub";
changelog = "https://github.com/PyGithub/PyGithub/raw/v${version}/doc/changes.rst";
license = licenses.lgpl3Plus;
maintainers = [ ];
};
}