Merge pull request #151293 from fabaff/ghrepo-stats
python3Packages.ghrepo-stats: init at 0.3.1
This commit is contained in:
commit
dd957819a8
41
pkgs/development/python-modules/ghrepo-stats/default.nix
Normal file
41
pkgs/development/python-modules/ghrepo-stats/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user