Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
49 lines
976 B
Nix
49 lines
976 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
python3,
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "aab";
|
|
version = "1.0.0-dev.5";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "glutanimate";
|
|
repo = "anki-addon-builder";
|
|
tag = "v${version}";
|
|
hash = "sha256-92Xqxgb9MLhSIa5EN3Rdk4aJlRfzEWqKmXFe604Q354=";
|
|
};
|
|
|
|
patches = [
|
|
./fix-flaky-tests.patch
|
|
./only-call-git-when-necessary.patch
|
|
./allow-manually-setting-modtime.patch
|
|
];
|
|
|
|
build-system = [ python3.pkgs.poetry-core ];
|
|
|
|
dependencies = with python3.pkgs; [
|
|
jsonschema
|
|
whichcraft
|
|
pyqt5
|
|
pyqt6
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
python3.pkgs.pytestCheckHook
|
|
python3.pkgs.pyqt5
|
|
python3.pkgs.pyqt6
|
|
];
|
|
|
|
pythonImportsCheck = [ "aab" ];
|
|
|
|
meta = {
|
|
description = "Build tool for Anki add-ons";
|
|
homepage = "https://github.com/glutanimate/anki-addon-builder";
|
|
license = lib.licenses.agpl3Only;
|
|
maintainers = with lib.maintainers; [ eljamm ];
|
|
};
|
|
}
|