From dd01b4dcbf8a7d752f18db493d314f7b05c19dcd Mon Sep 17 00:00:00 2001 From: Kerstin Humm Date: Mon, 22 Jul 2024 17:01:59 +0200 Subject: [PATCH] python3Packages.aeidon: init at 1.15 --- .../python-modules/aeidon/default.nix | 61 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 63 insertions(+) create mode 100644 pkgs/development/python-modules/aeidon/default.nix 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 ]; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 17220c9ddd5f..00c8d93abd2d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -93,6 +93,8 @@ self: super: with self; { advocate = callPackage ../development/python-modules/advocate { }; + aeidon = callPackage ../development/python-modules/aeidon { }; + aemet-opendata = callPackage ../development/python-modules/aemet-opendata { }; aenum = callPackage ../development/python-modules/aenum { };