python3Packages.clintermission: Use buildPythonPackage

and reformat.
This commit is contained in:
Martin Weinelt 2022-10-02 15:24:15 +02:00
parent 8252b7387e
commit 32f2486bf7

View file

@ -1,8 +1,15 @@
{ lib, buildPythonApplication, fetchFromGitHub, isPy3k, prompt-toolkit }:
{ lib
, buildPythonPackage
, fetchFromGitHub
, isPy3k
, prompt-toolkit }:
buildPythonApplication rec {
buildPythonPackage rec {
pname = "clintermission";
version = "0.2.0";
format = "setuptools";
disabled = !isPy3k;
src = fetchFromGitHub {
owner = "sebageek";
@ -11,14 +18,16 @@ buildPythonApplication rec {
sha256 = "09wl0rpw6c9hab51rs957z64b0v9j4fcbqbn726wnapf4z5w6yxv";
};
propagatedBuildInputs = [ prompt-toolkit ];
disabled = !isPy3k;
propagatedBuildInputs = [
prompt-toolkit
];
# repo contains no tests
doCheck = false;
pythonImportsCheck = [ "clintermission" ];
pythonImportsCheck = [
"clintermission"
];
meta = with lib; {
description = "Non-fullscreen command-line selection menu";