nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 41 lines 786 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, matplotlib 5, PyGithub 6, pythonOlder 7}: 8 9buildPythonPackage rec { 10 pname = "ghrepo-stats"; 11 version = "0.3.1"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.8"; 15 16 src = fetchFromGitHub { 17 owner = "mrbean-bremen"; 18 repo = pname; 19 rev = "v${version}"; 20 sha256 = "sha256-W6RhVnMuOgB4GNxczx3UlSeq0RWIM7yISKEvpnrE9uk="; 21 }; 22 23 propagatedBuildInputs = [ 24 matplotlib 25 PyGithub 26 ]; 27 28 # Module has no tests 29 doCheck = false; 30 31 pythonImportsCheck = [ 32 "ghrepo_stats" 33 ]; 34 35 meta = with lib; { 36 description = "Python module and CLI tool for GitHub repo statistics"; 37 homepage = "https://github.com/mrbean-bremen/ghrepo-stats"; 38 license = licenses.mit; 39 maintainers = with maintainers; [ fab ]; 40 }; 41}