depot/third_party/nixpkgs/pkgs/development/python-modules/pygithub/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

57 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, deprecated
, fetchFromGitHub
, pynacl
, typing-extensions
, pyjwt
, python-dateutil
, pythonOlder
, requests
, setuptools-scm
}:
buildPythonPackage rec {
pname = "pygithub";
version = "1.59.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "PyGithub";
repo = "PyGithub";
rev = "refs/tags/v${version}";
hash = "sha256-bfXf1lwTpoyf6Pn4J0KR99xUh28VPszlbcYSbqKfyFQ=";
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
deprecated
pyjwt
pynacl
python-dateutil
requests
typing-extensions
] ++ 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 = with maintainers; [ jhhuh ];
};
}