Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / colout / default.nix
blob0679270200d86e4419895ae14285461f4c646da8
1 { lib
2 , babel
3 , buildPythonPackage
4 , fetchFromGitHub
5 , pygments
6 , pythonOlder
7 , setuptools-scm
8 }:
10 buildPythonPackage rec {
11   pname = "colout";
12   version = "1.1";
13   format = "setuptools";
15   disabled = pythonOlder "3.7";
17   src = fetchFromGitHub {
18     owner = "nojhan";
19     repo = pname;
20     rev = "refs/tags/v${version}";
21     hash = "sha256-7Dtf87erBElqVgqRx8BYHYOWv1uI84JJ0LHrcneczCI=";
22   };
24   SETUPTOOLS_SCM_PRETEND_VERSION = version;
26   nativeBuildInputs = [
27     setuptools-scm
28   ];
30   propagatedBuildInputs = [
31     babel
32     pygments
33   ];
35   pythonImportsCheck = [
36     "colout"
37   ];
39   # This project does not have a unit test
40   doCheck = false;
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   };