diff options
Diffstat (limited to 'pkgs/development/python-modules/aeidon/default.nix')
-rw-r--r-- | pkgs/development/python-modules/aeidon/default.nix | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/aeidon/default.nix b/pkgs/development/python-modules/aeidon/default.nix new file mode 100644 index 000000000000..7438d3a74fe6 --- /dev/null +++ b/pkgs/development/python-modules/aeidon/default.nix @@ -0,0 +1,52 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pytestCheckHook, + charset-normalizer, +}: + +buildPythonPackage rec { + pname = "aeidon"; + version = "1.15"; + pyproject = true; + + src = fetchFromGitHub { + owner = "otsaloma"; + repo = "gaupol"; + rev = "refs/tags/${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 ]; + + pytestFlagsArray = [ "aeidon/test" ]; + + disabledTests = [ + # requires gspell to work with gobject introspection + "test_spell" + ]; + + pythonImportsCheck = [ "aeidon" ]; + + meta = with lib; { + 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 = licenses.gpl3Plus; + maintainers = with maintainers; [ erictapen ]; + }; + +} |