1{ lib 2, babel 3, buildPythonPackage 4, fetchFromGitHub 5, pygments 6, pythonOlder 7, setuptools-scm 8}: 9 10buildPythonPackage rec { 11 pname = "colout"; 12 version = "1.1"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "nojhan"; 19 repo = pname; 20 rev = "refs/tags/v${version}"; 21 hash = "sha256-7Dtf87erBElqVgqRx8BYHYOWv1uI84JJ0LHrcneczCI="; 22 }; 23 24 SETUPTOOLS_SCM_PRETEND_VERSION = version; 25 26 nativeBuildInputs = [ 27 setuptools-scm 28 ]; 29 30 propagatedBuildInputs = [ 31 babel 32 pygments 33 ]; 34 35 pythonImportsCheck = [ 36 "colout" 37 ]; 38 39 # This project does not have a unit test 40 doCheck = false; 41 42 meta = with lib; { 43 description = "Color Up Arbitrary Command Output"; 44 homepage = "https://github.com/nojhan/colout"; 45 license = licenses.gpl3Only; 46 maintainers = with maintainers; [ badele ]; 47 }; 48}