diff options
| author | Kerstin Humm <kerstin@erictapen.name> | 2024-07-22 17:01:59 +0200 |
|---|---|---|
| committer | Valentin Gagarin <valentin@gagarin.work> | 2024-08-13 08:44:54 +0200 |
| commit | dd01b4dcbf8a7d752f18db493d314f7b05c19dcd (patch) | |
| tree | bdc6e3da9f442b7ddab9eb515d2cb33b477c56ca /pkgs/development/python-modules | |
| parent | e71402f44b527fb3149532fffdbc742813c92f85 (diff) | |
python3Packages.aeidon: init at 1.15
Diffstat (limited to 'pkgs/development/python-modules')
| -rw-r--r-- | pkgs/development/python-modules/aeidon/default.nix | 61 |
1 files changed, 61 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..744ece58293f --- /dev/null +++ b/pkgs/development/python-modules/aeidon/default.nix @@ -0,0 +1,61 @@ +{ + lib, + buildPythonPackage, + fetchPypi, + gettext, + flake8, + isocodes, + pytestCheckHook, + charset-normalizer, +}: + +buildPythonPackage rec { + pname = "aeidon"; + version = "1.15"; + + src = fetchPypi { + pname = "aeidon"; + inherit version; + sha256 = "sha256-qGpGraRZFVaW1Jys24qvfPo5WDg7Q/fhvm44JH8ulVw="; + }; + + nativeBuildInputs = [ + gettext + flake8 + ]; + + dependencies = [ isocodes ]; + + installPhase = '' + runHook preInstall + python setup.py --without-gaupol install --prefix=$out + runHook postInstall + ''; + + nativeCheckInputs = [ + pytestCheckHook + charset-normalizer + ]; + + # Aeidon is looking in the wrong subdirectory for data + preCheck = '' + cp -r data aeidon/ + ''; + + pytestFlagsArray = [ "aeidon/test" ]; + + disabledTests = [ + # requires gspell to work with gobject introspection + "test_spell" + ]; + + pythonImportsCheck = [ "aeidon" ]; + + meta = with lib; { + description = "Reading, writing and manipulationg text-based subtitle files"; + homepage = "https://github.com/otsaloma/gaupol"; + license = licenses.gpl3Only; + maintainers = with maintainers; [ erictapen ]; + }; + +} |
