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