2023-04-19 17:49:43 +00:00
|
|
|
{ lib
|
|
|
|
, babel
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pygments
|
2023-05-18 18:29:56 +00:00
|
|
|
, pythonOlder
|
2023-04-19 17:49:43 +00:00
|
|
|
, setuptools-scm
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "colout";
|
2023-05-18 18:21:03 +00:00
|
|
|
version = "1.1";
|
2023-05-18 18:29:56 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2023-04-19 17:49:43 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nojhan";
|
|
|
|
repo = pname;
|
2023-05-18 18:29:56 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-7Dtf87erBElqVgqRx8BYHYOWv1uI84JJ0LHrcneczCI=";
|
2023-04-19 17:49:43 +00:00
|
|
|
};
|
|
|
|
|
2023-05-18 18:29:56 +00:00
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
|
2023-04-19 17:49:43 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
babel
|
|
|
|
pygments
|
|
|
|
];
|
|
|
|
|
2023-05-18 18:29:56 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"colout"
|
|
|
|
];
|
2023-04-19 17:49:43 +00:00
|
|
|
|
|
|
|
# This project does not have a unit test
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Color Up Arbitrary Command Output";
|
|
|
|
homepage = "https://github.com/nojhan/colout";
|
2023-05-18 18:29:56 +00:00
|
|
|
license = licenses.gpl3Only;
|
2023-04-19 17:49:43 +00:00
|
|
|
maintainers = with maintainers; [ badele ];
|
|
|
|
};
|
|
|
|
}
|