nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 deprecated,
5 fetchFromGitHub,
6 pynacl,
7 typing-extensions,
8 pyjwt,
9 requests,
10 setuptools,
11 setuptools-scm,
12 urllib3,
13}:
14
15buildPythonPackage rec {
16 pname = "pygithub";
17 version = "2.8.1";
18 pyproject = true;
19
20 src = fetchFromGitHub {
21 owner = "PyGithub";
22 repo = "PyGithub";
23 tag = "v${version}";
24 hash = "sha256-36taxa95WrpQw0UUlmnWX4XFslAAuuoousxNh5O5uDA=";
25 };
26
27 build-system = [
28 setuptools
29 setuptools-scm
30 ];
31
32 dependencies = [
33 deprecated
34 pyjwt
35 pynacl
36 requests
37 typing-extensions
38 urllib3
39 ]
40 ++ pyjwt.optional-dependencies.crypto;
41
42 # Test suite makes REST calls against github.com
43 doCheck = false;
44
45 pythonImportsCheck = [ "github" ];
46
47 meta = {
48 description = "Python library to access the GitHub API v3";
49 homepage = "https://github.com/PyGithub/PyGithub";
50 changelog = "https://github.com/PyGithub/PyGithub/raw/${src.tag}/doc/changes.rst";
51 license = lib.licenses.lgpl3Plus;
52 maintainers = [ ];
53 };
54}