about summary refs log tree commit diff
path: root/pkgs/development/python-modules/stransi/default.nix
blob: 5b2802ea1afe8392771ce38e5c1c3ab860526ebe (plain) (blame)
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
42
43
44
{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, hypothesis
, pytestCheckHook
, ochre
}:

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

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

  nativeBuildInputs = [
    poetry-core
  ];

  nativeCheckInputs = [
    hypothesis
    pytestCheckHook
  ];

  propagatedBuildInputs = [
    ochre
  ];

  pythonImportsCheck = [ "stransi" ];

  meta = with lib; {
    description = "A 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 = licenses.mit;
    maintainers = with maintainers; [ figsoda ];
  };
}