Files
nixpkgs/pkgs/development/python-modules/cleanit/default.nix
T
Martin Weinelt 8ea6bde88d treewide: prune pythonOlder 3.10/3.11
This is a post 3.10 removal cleanup.
2026-02-15 04:33:54 +01:00

64 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build dependencies
poetry-core,
# dependencies
appdirs,
babelfish,
chardet,
click,
jsonschema,
pysrt,
pyyaml,
# tests
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "cleanit";
version = "0.4.9";
pyproject = true;
src = fetchFromGitHub {
owner = "ratoaq2";
repo = "cleanit";
tag = version;
hash = "sha256-5fzBcOr6PGp847S7qLsXgYKxPcGW4mM5B5QNBSvH7BM=";
};
build-system = [ poetry-core ];
dependencies = [
appdirs
babelfish
chardet
click
jsonschema
pysrt
pyyaml
];
pythonRelaxDeps = [
"click"
"jsonschema"
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "cleanit" ];
meta = {
description = "Command line tool that helps you to keep your subtitles clean";
homepage = "https://github.com/ratoaq2/cleanit";
changelog = "https://github.com/ratoaq2/cleanit/releases/tag/${src.tag}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ eljamm ];
mainProgram = "cleanit";
};
}