diff --git a/pkgs/development/python-modules/shtab/default.nix b/pkgs/development/python-modules/shtab/default.nix index 3a10e6744895..4f939eed4f25 100644 --- a/pkgs/development/python-modules/shtab/default.nix +++ b/pkgs/development/python-modules/shtab/default.nix @@ -4,14 +4,15 @@ , pytest-timeout , pytestCheckHook , pythonOlder +, setuptools , setuptools-scm , bashInteractive }: buildPythonPackage rec { pname = "shtab"; - version = "1.6.1"; - format = "setuptools"; + version = "1.6.2"; + format = "pyproject"; disabled = pythonOlder "3.7"; @@ -19,12 +20,18 @@ buildPythonPackage rec { owner = "iterative"; repo = pname; rev = "refs/tags/v${version}"; - hash = "sha256-5qjavFzwFH75SlTQxxhMoJjBRIjGz9oogdvSw9dkjz0="; + hash = "sha256-qhWkUprDEFRvb9/0dGWBjyIFQY08sAqFSl5jYGtN6Z8="; }; SETUPTOOLS_SCM_PRETEND_VERSION = version; + postPatch = '' + substituteInPlace pyproject.toml \ + --replace " --cov=shtab --cov-report=term-missing --cov-report=xml" "" + ''; + nativeBuildInputs = [ + setuptools setuptools-scm ]; @@ -34,11 +41,6 @@ buildPythonPackage rec { pytestCheckHook ]; - postPatch = '' - substituteInPlace setup.cfg \ - --replace " --cov=shtab --cov-report=term-missing --cov-report=xml" "" - ''; - pythonImportsCheck = [ "shtab" ];