diff --git a/pkgs/development/python-modules/cvelib/default.nix b/pkgs/development/python-modules/cvelib/default.nix index 9a8fb1232c27..967fc991ab17 100644 --- a/pkgs/development/python-modules/cvelib/default.nix +++ b/pkgs/development/python-modules/cvelib/default.nix @@ -8,13 +8,13 @@ pytestCheckHook, pythonOlder, requests, - setuptools, + hatchling, testers, }: buildPythonPackage rec { pname = "cvelib"; - version = "1.7.1"; + version = "1.8.0"; pyproject = true; disabled = pythonOlder "3.7"; @@ -23,16 +23,10 @@ buildPythonPackage rec { owner = "RedHatProductSecurity"; repo = "cvelib"; tag = version; - hash = "sha256-AhA+2lEI/hsbIVCfSWO0vI6eWkObjsq5xYOSqVvUPkU="; + hash = "sha256-lbwrZSzJaP+nKFwt7xiq/LTzgOuf8aELxjrxEKkYpfc="; }; - postPatch = '' - # collective.checkdocs is unmaintained for over 10 years - substituteInPlace pyproject.toml \ - --replace-fail '"collective.checkdocs",' "" - ''; - - build-system = [ setuptools ]; + build-system = [ hatchling ]; dependencies = [ click @@ -49,7 +43,7 @@ buildPythonPackage rec { meta = with lib; { description = "Library and a command line interface for the CVE Services API"; homepage = "https://github.com/RedHatProductSecurity/cvelib"; - changelog = "https://github.com/RedHatProductSecurity/cvelib/blob/${version}/CHANGELOG.md"; + changelog = "https://github.com/RedHatProductSecurity/cvelib/blob/${src.tag}/CHANGELOG.md"; license = licenses.mit; maintainers = with maintainers; [ raboof ]; mainProgram = "cve";