Files
nixpkgs/pkgs/development/python-modules/cmd2-ext-test/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

38 lines
777 B
Nix

{
lib,
buildPythonPackage,
cmd2,
fetchPypi,
pytestCheckHook,
pythonOlder,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "cmd2-ext-test";
version = "2.0.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-uTc+onurLilwQe0trESR3JGa5WFT1fCt3rRA7rhRpaY=";
};
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [ cmd2 ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "cmd2_ext_test" ];
meta = {
description = "Plugin supports testing of a cmd2 application";
homepage = "https://github.com/python-cmd2/cmd2/tree/master/plugins/ext_test";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}