1{ 2 lib, 3 beautifulsoup4, 4 buildPythonPackage, 5 fetchFromGitHub, 6 matplotlib, 7 pygithub, 8 pythonOlder, 9}: 10 11buildPythonPackage rec { 12 pname = "ghrepo-stats"; 13 version = "0.5.5"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.8"; 17 18 src = fetchFromGitHub { 19 owner = "mrbean-bremen"; 20 repo = "ghrepo-stats"; 21 tag = "v${version}"; 22 hash = "sha256-zdBIX/uetkOAalg4uJPWXRL9WUgNN+hmqUwQDTdzrzA="; 23 }; 24 25 postPatch = '' 26 # https://github.com/mrbean-bremen/ghrepo-stats/pull/1 27 substituteInPlace setup.py \ 28 --replace "bs4" "beautifulsoup4" 29 ''; 30 31 propagatedBuildInputs = [ 32 beautifulsoup4 33 matplotlib 34 pygithub 35 ]; 36 37 # Module has no tests 38 doCheck = false; 39 40 pythonImportsCheck = [ "ghrepo_stats" ]; 41 42 meta = with lib; { 43 description = "Python module and CLI tool for GitHub repo statistics"; 44 mainProgram = "show-ghstats"; 45 homepage = "https://github.com/mrbean-bremen/ghrepo-stats"; 46 changelog = "https://github.com/mrbean-bremen/ghrepo-stats/blob/v${version}/CHANGES.md"; 47 license = licenses.mit; 48 maintainers = with maintainers; [ fab ]; 49 }; 50}