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