This reverts commit65a333600d. This wasn't tested for correctness with something like fodwatch [0], and should not have been (self-)merged so quickly, especially without further review. It also resulted in the breakage of at least one package [1] (and that's the one we know of and was caught). A few packages that were updated in between this commit and this revert were not reverted back to using `rev`, but other than that, this is a 1:1 revert. [0]: https://codeberg.org/raphaelr/fodwatch [1]: https://github.com/NixOS/nixpkgs/pull/396904 /758551e458
42 lines
875 B
Nix
42 lines
875 B
Nix
{
|
|
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 = "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 ];
|
|
};
|
|
}
|