1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 fastcore,
6 packaging,
7 pythonOlder,
8 setuptools,
9}:
10
11buildPythonPackage rec {
12 pname = "ghapi";
13 version = "1.0.8";
14 pyproject = true;
15
16 disabled = pythonOlder "3.8";
17
18 src = fetchFromGitHub {
19 owner = "fastai";
20 repo = "ghapi";
21 tag = version;
22 hash = "sha256-ZfOo5Icusj8Fm5i/HWGjjXtNWEB1wgYNzqeLeWbBJ/4=";
23 };
24
25 build-system = [ setuptools ];
26
27 dependencies = [
28 fastcore
29 packaging
30 ];
31
32 # Module has no tests
33 doCheck = false;
34
35 pythonImportsCheck = [ "ghapi" ];
36
37 meta = with lib; {
38 description = "Python interface to GitHub's API";
39 homepage = "https://github.com/fastai/ghapi";
40 changelog = "https://github.com/fastai/ghapi/releases/tag/${version}";
41 license = with licenses; [ asl20 ];
42 maintainers = with maintainers; [ fab ];
43 };
44}