Merge pull request #151293 from fabaff/ghrepo-stats

python3Packages.ghrepo-stats: init at 0.3.1
This commit is contained in:
Fabian Affolter 2021-12-20 08:09:35 +01:00 committed by GitHub
commit dd957819a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,41 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, matplotlib
, PyGithub
, pythonOlder
}:
buildPythonPackage rec {
pname = "ghrepo-stats";
version = "0.3.1";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "mrbean-bremen";
repo = pname;
rev = "v${version}";
sha256 = "sha256-W6RhVnMuOgB4GNxczx3UlSeq0RWIM7yISKEvpnrE9uk=";
};
propagatedBuildInputs = [
matplotlib
PyGithub
];
# Module has no tests
doCheck = false;
pythonImportsCheck = [
"ghrepo_stats"
];
meta = with lib; {
description = "Python module and CLI tool for GitHub repo statistics";
homepage = "https://github.com/mrbean-bremen/ghrepo-stats";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View File

@ -5610,6 +5610,8 @@ with pkgs;
ghr = callPackage ../applications/version-management/git-and-tools/ghr { };
ghrepo-stats = with python3Packages; toPythonApplication ghrepo-stats;
gibberish-detector = with python3Packages; toPythonApplication gibberish-detector;
gibo = callPackage ../tools/misc/gibo { };

View File

@ -3158,6 +3158,8 @@ in {
ghp-import = callPackage ../development/python-modules/ghp-import { };
ghrepo-stats = callPackage ../development/python-modules/ghrepo-stats { };
gibberish-detector = callPackage ../development/python-modules/gibberish-detector { };
gidgethub = callPackage ../development/python-modules/gidgethub { };