Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / colored / default.nix
blobaf696f384f1589ed73eb31714ed4e9e640c57562
1 { lib
2 , buildPythonPackage
3 , fetchFromGitLab
4 , flit-core
5 , unittestCheckHook
6 }:
8 buildPythonPackage rec {
9   pname = "colored";
10   version = "2.2.3";
11   format = "pyproject";
13   src = fetchFromGitLab {
14     owner = "dslackw";
15     repo = "colored";
16     rev = "refs/tags/${version}";
17     hash = "sha256-4APFAIN+cmPPd6qbqVC9iU4YntNEjoPbJXZywG1hsBY=";
18   };
20   nativeBuildInputs = [
21     flit-core
22   ];
24   nativeCheckInputs = [
25     unittestCheckHook
26   ];
28   unittestFlagsArray = [
29     "unittests"
30   ];
32   pythonImportsCheck = [
33     "colored"
34   ];
36   meta = with lib; {
37     description = "Simple library for color and formatting to terminal";
38     homepage = "https://gitlab.com/dslackw/colored";
39     changelog = "https://gitlab.com/dslackw/colored/-/raw/${version}/CHANGES.md";
40     maintainers = with maintainers; [ ];
41     license = licenses.mit;
42   };