about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/colout/default.nix
blob: e01193cd36ecc93e0c512903b39c2de64118e3a8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{ 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=";
  };

  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 ];
  };
}