2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
poetry-core,
|
|
|
|
hypothesis,
|
|
|
|
pytestCheckHook,
|
|
|
|
ochre,
|
2023-08-22 20:05:09 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "stransi";
|
|
|
|
version = "0.3.0";
|
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "getcuia";
|
|
|
|
repo = "stransi";
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-PDMel6emra5bzX+FwHvUVpFu2YkRKy31UwkCL4sGJ14=";
|
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ poetry-core ];
|
2023-08-22 20:05:09 +00:00
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
hypothesis
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ ochre ];
|
2023-08-22 20:05:09 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|