summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/stransi/default.nix
blob: 5046ca79fea00e4010faf649899874be4117df21 (plain)
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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  poetry-core,
  hypothesis,
  pytestCheckHook,
  ochre,
}:

buildPythonPackage rec {
  pname = "stransi";
  version = "0.3.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "getcuia";
    repo = "stransi";
    rev = "v${version}";
    hash = "sha256-PDMel6emra5bzX+FwHvUVpFu2YkRKy31UwkCL4sGJ14=";
  };

  nativeBuildInputs = [ poetry-core ];

  nativeCheckInputs = [
    hypothesis
    pytestCheckHook
  ];

  propagatedBuildInputs = [ ochre ];

  pythonImportsCheck = [ "stransi" ];

  meta = {
    description = "Lightweight Python parser library for ANSI escape code sequences";
    homepage = "https://github.com/getcuia/stransi";
    changelog = "https://github.com/getcuia/stransi/releases/tag/${src.rev}";
    license = lib.licenses.mit;
    maintainers = [ ];
  };
}