mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 05:33:23 +00:00
c064985640
- disable on unsupported Python releases - clean-up inputs - add format
49 lines
868 B
Nix
49 lines
868 B
Nix
{ lib
|
|
, babel
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pygments
|
|
, pythonOlder
|
|
, setuptools-scm
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "colout";
|
|
version = "1.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nojhan";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-7Dtf87erBElqVgqRx8BYHYOWv1uI84JJ0LHrcneczCI=";
|
|
};
|
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
nativeBuildInputs = [
|
|
setuptools-scm
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
babel
|
|
pygments
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"colout"
|
|
];
|
|
|
|
# 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;
|
|
maintainers = with maintainers; [ badele ];
|
|
};
|
|
}
|