diff --git a/pkgs/development/python-modules/pygount/default.nix b/pkgs/development/python-modules/pygount/default.nix index f6d8cd3d55e2..e6cc42c4a6b9 100644 --- a/pkgs/development/python-modules/pygount/default.nix +++ b/pkgs/development/python-modules/pygount/default.nix @@ -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" ]; - - nativeBuildInputs = [ poetry-core ]; - - propagatedBuildInputs = [ - chardet - gitpython - pygments - rich + build-system = [ + hatchling ]; - nativeCheckInputs = [ pytestCheckHook ]; + pythonRelaxDeps = [ + "rich" + ]; + + dependencies = [ + pygments + chardet + rich + gitpython + ]; + + 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 ]; }; }