Unverified Commit cf8cccaf authored by Nick Cao's avatar Nick Cao Committed by GitHub
Browse files

python312Packages.pygount: 1.8.0 -> 2.0.0 (#403442)

parents 03260334 ac0e3075
Loading
Loading
Loading
Loading
+18 −12
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  poetry-core,
  hatchling,
  chardet,
  gitpython,
  pygments,
@@ -12,28 +12,34 @@

buildPythonPackage rec {
  pname = "pygount";
  version = "1.8.0";
  version = "2.0.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "roskakori";
    repo = "pygount";
    tag = "v${version}";
    hash = "sha256-PFqcSnJoGL4bXFy3hu3Iurbb8QK1NqCDs8aJmMxP4Hc=";
    hash = "sha256-l2Rq+4u6NwUIwMYWY/qfne7DrG0guv6hwnqVq5wszAo=";
  };

  pythonRelaxDeps = [ "rich" ];
  build-system = [
    hatchling
  ];

  nativeBuildInputs = [ poetry-core ];
  pythonRelaxDeps = [
    "rich"
  ];

  propagatedBuildInputs = [
    chardet
    gitpython
  dependencies = [
    pygments
    chardet
    rich
    gitpython
  ];

  nativeCheckInputs = [ pytestCheckHook ];
  nativeCheckInputs = [
    pytestCheckHook
  ];

  disabledTests = [
    # requires network access
@@ -43,12 +49,12 @@ buildPythonPackage rec {

  pythonImportsCheck = [ "pygount" ];

  meta = with lib; {
  meta = {
    description = "Count lines of code for hundreds of languages using pygments";
    mainProgram = "pygount";
    homepage = "https://github.com/roskakori/pygount";
    changelog = "https://github.com/roskakori/pygount/blob/${src.rev}/CHANGES.md";
    license = with licenses; [ bsd3 ];
    maintainers = with maintainers; [ nickcao ];
    license = with lib.licenses; [ bsd3 ];
    maintainers = with lib.maintainers; [ nickcao ];
  };
}