diff --git a/pkgs/development/python-modules/shellingham/default.nix b/pkgs/development/python-modules/shellingham/default.nix index 3b1694e7d02f..76bb8c18b3d3 100644 --- a/pkgs/development/python-modules/shellingham/default.nix +++ b/pkgs/development/python-modules/shellingham/default.nix @@ -7,7 +7,7 @@ pytestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "shellingham"; version = "1.5.4"; pyproject = true; @@ -15,11 +15,11 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "sarugaku"; repo = "shellingham"; - tag = version; + tag = finalAttrs.version; hash = "sha256-xeBo3Ok+XPrHN4nQd7M8/11leSV/8z1f7Sj33+HFVtQ="; }; - nativeBuildInputs = [ setuptools ]; + build-system = [ setuptools ]; nativeCheckInputs = [ pytest-mock @@ -31,8 +31,8 @@ buildPythonPackage rec { meta = { description = "Tool to detect the surrounding shell"; homepage = "https://github.com/sarugaku/shellingham"; - changelog = "https://github.com/sarugaku/shellingham/blob/${version}/CHANGELOG.rst"; + changelog = "https://github.com/sarugaku/shellingham/blob/${finalAttrs.src.tag}/CHANGELOG.rst"; license = lib.licenses.isc; maintainers = with lib.maintainers; [ mbode ]; }; -} +})