python3Packages.shtab: Pick a fix for nargs="?" from upstream (#420858)

Changed files
+9
pkgs
development
python-modules
shtab
+9
pkgs/development/python-modules/shtab/default.nix
···
lib,
buildPythonPackage,
fetchFromGitHub,
+
fetchpatch2,
pytest-timeout,
pytestCheckHook,
pytest-cov-stub,
···
tag = "v${version}";
hash = "sha256-ngTAST+6lBek0PHvULmlJZAHVU49YN5+XAu5KEk6cIM=";
};
+
+
patches = [
+
# Fix bash error on optional nargs="?" (iterative/shtab#184)
+
(fetchpatch2 {
+
url = "https://github.com/iterative/shtab/commit/a04ddf92896f7e206c9b19d48dcc532765364c59.patch?full_index=1";
+
hash = "sha256-H4v81xQLI9Y9R5OyDPJevCLh4gIUaiJKHVEU/eWdNbA=";
+
})
+
];
nativeBuildInputs = [
setuptools