2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
ipdb,
|
|
|
|
pytestCheckHook,
|
2023-07-15 17:15:38 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage {
|
|
|
|
pname = "cliche";
|
|
|
|
version = "0.10.108";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kootenpv";
|
|
|
|
repo = "cliche";
|
|
|
|
rev = "80a9ae2e90f4493880b669d5db51f1d4038589df"; # no tags
|
|
|
|
sha256 = "sha256-7/icSneLQzwdkRL/mS4RjsgnKa6YIVvGCmdS6pB6r5Y=";
|
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "ipdb == 0.13.9" "ipdb"
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ ipdb ];
|
|
|
|
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "cliche" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Build a simple command-line interface from your functions :computer:";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "cliche";
|
2023-07-15 17:15:38 +00:00
|
|
|
homepage = "https://github.com/kootenpv/cliche";
|
|
|
|
license = licenses.mit;
|
2023-08-04 22:07:22 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
}
|