diff --git a/pkgs/development/python-modules/tomli-w/default.nix b/pkgs/development/python-modules/tomli-w/default.nix index 3741f4e2881e..618d0bb8c174 100644 --- a/pkgs/development/python-modules/tomli-w/default.nix +++ b/pkgs/development/python-modules/tomli-w/default.nix @@ -3,27 +3,35 @@ buildPythonPackage, fetchFromGitHub, flit-core, + pytestCheckHook, + tomli, }: buildPythonPackage rec { pname = "tomli-w"; - version = "1.0.0"; - format = "pyproject"; + version = "1.2.0"; + pyproject = true; src = fetchFromGitHub { owner = "hukkin"; - repo = pname; - rev = version; - hash = "sha256-wZSC5uOi1JUeKXIli1I8/Vo0wGsv9Q1I84dAMQQP95w="; + repo = "tomli-w"; + tag = version; + hash = "sha256-Du37ySvAL9iwGec5wbWxwLTYm+kcDSOs5OJ5Sw7R87g="; }; - nativeBuildInputs = [ flit-core ]; + build-system = [ flit-core ]; + + nativeCheckInputs = [ + pytestCheckHook + tomli + ]; pythonImportsCheck = [ "tomli_w" ]; meta = with lib; { description = "Write-only counterpart to Tomli, which is a read-only TOML parser"; homepage = "https://github.com/hukkin/tomli-w"; + changelog = "https://github.com/hukkin/tomli-w/blob/${src.tag}/CHANGELOG.md"; license = licenses.mit; maintainers = with maintainers; [ lovesegfault ]; };