Files
nixpkgs/pkgs/development/python-modules/ghrepo-stats/default.nix
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

48 lines
1.0 KiB
Nix

{
lib,
beautifulsoup4,
buildPythonPackage,
fetchFromGitHub,
matplotlib,
pygithub,
}:
buildPythonPackage rec {
pname = "ghrepo-stats";
version = "0.5.5";
format = "setuptools";
src = fetchFromGitHub {
owner = "mrbean-bremen";
repo = "ghrepo-stats";
tag = "v${version}";
hash = "sha256-zdBIX/uetkOAalg4uJPWXRL9WUgNN+hmqUwQDTdzrzA=";
};
postPatch = ''
# https://github.com/mrbean-bremen/ghrepo-stats/pull/1
substituteInPlace setup.py \
--replace "bs4" "beautifulsoup4"
'';
propagatedBuildInputs = [
beautifulsoup4
matplotlib
pygithub
];
# Module has no tests
doCheck = false;
pythonImportsCheck = [ "ghrepo_stats" ];
meta = {
description = "Python module and CLI tool for GitHub repo statistics";
mainProgram = "show-ghstats";
homepage = "https://github.com/mrbean-bremen/ghrepo-stats";
changelog = "https://github.com/mrbean-bremen/ghrepo-stats/blob/v${version}/CHANGES.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}