pytrainer: unpin python 3.10
[NixPkgs.git] / pkgs / development / python-modules / colored / default.nix
blob18306a65bb98be7928d34d942adf71178dc340b9
2   lib,
3   buildPythonPackage,
4   fetchFromGitLab,
5   flit-core,
6   unittestCheckHook,
7 }:
9 buildPythonPackage rec {
10   pname = "colored";
11   version = "2.2.3";
12   format = "pyproject";
14   src = fetchFromGitLab {
15     owner = "dslackw";
16     repo = "colored";
17     rev = "refs/tags/${version}";
18     hash = "sha256-4APFAIN+cmPPd6qbqVC9iU4YntNEjoPbJXZywG1hsBY=";
19   };
21   nativeBuildInputs = [ flit-core ];
23   nativeCheckInputs = [ unittestCheckHook ];
25   unittestFlagsArray = [ "unittests" ];
27   pythonImportsCheck = [ "colored" ];
29   meta = with lib; {
30     description = "Simple library for color and formatting to terminal";
31     homepage = "https://gitlab.com/dslackw/colored";
32     changelog = "https://gitlab.com/dslackw/colored/-/raw/${version}/CHANGES.md";
33     maintainers = [ ];
34     license = licenses.mit;
35   };