Files
nixpkgs/pkgs/development/python-modules/cmd2/default.nix
T
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

61 lines
1.2 KiB
Nix

{
lib,
stdenv,
buildPythonPackage,
fetchPypi,
glibcLocales,
gnureadline,
pyperclip,
pytest-cov-stub,
pytest-mock,
pytestCheckHook,
rich-argparse,
setuptools-scm,
wcwidth,
}:
buildPythonPackage rec {
pname = "cmd2";
version = "2.7.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-gdgTW0YhDh0DpagQuvhZBppiIUeIzu7DWI9E7thvvus=";
};
build-system = [ setuptools-scm ];
dependencies = [
pyperclip
rich-argparse
wcwidth
]
++ lib.optional stdenv.hostPlatform.isDarwin gnureadline;
doCheck = true;
nativeCheckInputs = [
glibcLocales
pytestCheckHook
pytest-cov-stub
pytest-mock
];
disabledTests = [
# Don't require vim for tests, it causes lots of rebuilds
"test_find_editor_not_specified"
"test_transcript"
];
pythonImportsCheck = [ "cmd2" ];
meta = {
description = "Enhancements for standard library's cmd module";
homepage = "https://github.com/python-cmd2/cmd2";
changelog = "https://github.com/python-cmd2/cmd2/releases/tag/${version}";
license = with lib.licenses; [ mit ];
maintainers = with lib.maintainers; [ teto ];
};
}