1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 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 = [ 33 "ghapi" 34 ]; 35 36 meta = with lib; { 37 description = "Python interface to GitHub's API"; 38 homepage = "https://github.com/fastai/ghapi"; 39 license = with licenses; [ asl20 ]; 40 maintainers = with maintainers; [ fab ]; 41 }; 42}