libfmvoice: 0-unstable-2024-11-08 -> 0-unstable-2024-12-11 (#364919)
[NixPkgs.git] / pkgs / development / python-modules / ghrepo-stats / default.nix
blobe3532c3825a73093375d8cb7ac93edbe780b2f34
2   lib,
3   beautifulsoup4,
4   buildPythonPackage,
5   fetchFromGitHub,
6   matplotlib,
7   pygithub,
8   pythonOlder,
9 }:
11 buildPythonPackage rec {
12   pname = "ghrepo-stats";
13   version = "0.5.4";
14   format = "setuptools";
16   disabled = pythonOlder "3.8";
18   src = fetchFromGitHub {
19     owner = "mrbean-bremen";
20     repo = pname;
21     rev = "refs/tags/v${version}";
22     hash = "sha256-Mr0FM2CbdgAUF8siMjUIZvypWiPNPU9OncPiBPqK3uE=";
23   };
25   postPatch = ''
26     # https://github.com/mrbean-bremen/ghrepo-stats/pull/1
27     substituteInPlace setup.py \
28       --replace "bs4" "beautifulsoup4"
29   '';
31   propagatedBuildInputs = [
32     beautifulsoup4
33     matplotlib
34     pygithub
35   ];
37   # Module has no tests
38   doCheck = false;
40   pythonImportsCheck = [ "ghrepo_stats" ];
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   };