python3Packages.cmd2: 2.6.0 -> 2.6.1

This commit is contained in:
R. Ryantm
2025-06-28 18:26:04 +02:00
committed by Weijia Wang
parent d3a3a77657
commit 005caecf05
@@ -7,38 +7,27 @@
fetchPypi,
glibcLocales,
gnureadline,
importlib-metadata,
pyperclip,
pytest-cov-stub,
pytest-mock,
pytestCheckHook,
pythonOlder,
setuptools-scm,
typing-extensions,
wcwidth,
}:
buildPythonPackage rec {
pname = "cmd2";
version = "2.6.0";
version = "2.6.1";
pyproject = true;
disabled = pythonOlder "3.6";
disabled = pythonOlder "3.9";
src = fetchPypi {
inherit pname version;
hash = "sha256-jP+rp4EFJkIcqzv6AQG0kH4SmP8rzYEZYVllourl2V8=";
hash = "sha256-ZQpYkr8psjPT1ndbXjzIE2SM/w15E09weYH2a6rtn0I=";
};
postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
# Fake the impure dependencies pbpaste and pbcopy
mkdir bin
echo '#!${stdenv.shell}' > bin/pbpaste
echo '#!${stdenv.shell}' > bin/pbcopy
chmod +x bin/{pbcopy,pbpaste}
export PATH=$(realpath bin):$PATH
'';
build-system = [ setuptools-scm ];
dependencies = [
@@ -48,7 +37,7 @@ buildPythonPackage rec {
wcwidth
] ++ lib.optional stdenv.hostPlatform.isDarwin gnureadline;
doCheck = !stdenv.hostPlatform.isDarwin;
doCheck = true;
nativeCheckInputs = [
glibcLocales