1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, poetry-core 5, hypothesis 6, pytestCheckHook 7, ochre 8}: 9 10buildPythonPackage rec { 11 pname = "stransi"; 12 version = "0.3.0"; 13 format = "pyproject"; 14 15 src = fetchFromGitHub { 16 owner = "getcuia"; 17 repo = "stransi"; 18 rev = "v${version}"; 19 hash = "sha256-PDMel6emra5bzX+FwHvUVpFu2YkRKy31UwkCL4sGJ14="; 20 }; 21 22 nativeBuildInputs = [ 23 poetry-core 24 ]; 25 26 nativeCheckInputs = [ 27 hypothesis 28 pytestCheckHook 29 ]; 30 31 propagatedBuildInputs = [ 32 ochre 33 ]; 34 35 pythonImportsCheck = [ "stransi" ]; 36 37 meta = with lib; { 38 description = "A lightweight Python parser library for ANSI escape code sequences"; 39 homepage = "https://github.com/getcuia/stransi"; 40 changelog = "https://github.com/getcuia/stransi/releases/tag/${src.rev}"; 41 license = licenses.mit; 42 maintainers = with maintainers; [ figsoda ]; 43 }; 44}