nixpkgs/pkgs/development/python-modules/colout/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

49 lines
868 B
Nix
Raw Normal View History

2023-04-19 17:49:43 +00:00
{ lib
, babel
, buildPythonPackage
, fetchFromGitHub
, pygments
, pythonOlder
2023-04-19 17:49:43 +00:00
, setuptools-scm
}:
buildPythonPackage rec {
pname = "colout";
version = "1.1";
format = "setuptools";
disabled = pythonOlder "3.7";
2023-04-19 17:49:43 +00:00
src = fetchFromGitHub {
owner = "nojhan";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-7Dtf87erBElqVgqRx8BYHYOWv1uI84JJ0LHrcneczCI=";
2023-04-19 17:49:43 +00:00
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
2023-04-19 17:49:43 +00:00
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
babel
pygments
];
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";
license = licenses.gpl3Only;
2023-04-19 17:49:43 +00:00
maintainers = with maintainers; [ badele ];
};
}