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