Files
nixpkgs/pkgs/development/python-modules/aeidon/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

53 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
pytestCheckHook,
charset-normalizer,
}:
buildPythonPackage rec {
pname = "aeidon";
version = "1.15";
pyproject = true;
src = fetchFromGitHub {
owner = "otsaloma";
repo = "gaupol";
tag = version;
hash = "sha256-lhNyeieeiBBm3rNDEU0BuWKeM6XYlOtv1voW8tR8cUM=";
};
postPatch = ''
mv setup.py setup_gaupol.py
substituteInPlace setup-aeidon.py \
--replace "from setup import" "from setup_gaupol import"
mv setup-aeidon.py setup.py
'';
build-system = [ setuptools ];
dependencies = [ charset-normalizer ];
nativeCheckInputs = [ pytestCheckHook ];
enabledTestPaths = [ "aeidon/test" ];
disabledTests = [
# requires gspell to work with gobject introspection
"test_spell"
];
pythonImportsCheck = [ "aeidon" ];
meta = {
changelog = "https://github.com/otsaloma/gaupol/releases/tag/${version}";
description = "Reading, writing and manipulationg text-based subtitle files";
homepage = "https://github.com/otsaloma/gaupol";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ erictapen ];
};
}