Something went wrong. Try again.
lol
Something went wrong. Try again.
2.9 kB · 136 lines
Nix
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137{ lib, stdenv, buildPythonPackage, fetchFromGitHub,
# build-system setuptools,
# dependencies click, dogpile-cache, jinja2, lockfile, pydantic, python-dateutil, requests, taskw,
# optional-dependencies # bts debianbts, # bugzilla python-bugzilla, # gmail google-api-python-client, google-auth-oauthlib, # jira jira, # keyring keyring, # trac offtrac,
# tests docutils, pytestCheckHook, responses, sphinx, sphinx-click, sphinx-inline-tabs, taskwarrior3, versionCheckHook, writableTmpDirAsHomeHook,}:
buildPythonPackage (finalAttrs: { pname = "bugwarrior"; version = "2.1.0"; pyproject = true;
src = fetchFromGitHub { owner = "GothenburgBitFactory"; repo = "bugwarrior"; tag = finalAttrs.version; hash = "sha256-Px0yOIdXalIJdXMmjMnpl74aaUzaptS8Esy21NMZH98="; };
build-system = [ setuptools ];
dependencies = [ click dogpile-cache jinja2 lockfile pydantic python-dateutil requests taskw ] ++ pydantic.optional-dependencies.email;
optional-dependencies = { bts = [ debianbts ]; bugzilla = [ python-bugzilla ]; gmail = [ google-api-python-client google-auth-oauthlib ]; jira = [ jira ]; keyring = [ keyring ]; trac = [ offtrac ]; };
nativeCheckInputs = [ docutils pytestCheckHook responses sphinx sphinx-click sphinx-inline-tabs taskwarrior3 versionCheckHook writableTmpDirAsHomeHook ] ++ lib.concatAttrValues finalAttrs.passthru.optional-dependencies; disabledTestPaths = [ # Optional dependencies for these services aren't packaged. "tests/test_kanboard.py" "tests/test_phab.py" "tests/test_todoist.py" ]; disabledTests = [ # Requires ini2toml dependency, which isn't packaged. "TestIni2Toml" # Import services for which the optional dependencies aren't packaged. "TestValidation" "ExampleTest" "TestServices"
# Remove test that depend on ruff to prevent it from having too many consumers "test_ruff_check" "test_ruff_format" ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ # sphinx.errors.ExtensionError: Could not import extension config # (exception: No module named 'ini2toml') "test_docs_build_without_warning" "test_manpage_build_without_warning" ];
pythonImportsCheck = [ "bugwarrior" ];
meta = { homepage = "https://github.com/GothenburgBitFactory/bugwarrior"; description = "Sync github, bitbucket, bugzilla, and trac issues with taskwarrior"; changelog = "https://github.com/GothenburgBitFactory/bugwarrior/blob/${finalAttrs.src.tag}/CHANGELOG.rst"; license = lib.licenses.gpl3Plus; platforms = lib.platforms.all; mainProgram = "bugwarrior"; maintainers = with lib.maintainers; [ pierron ryneeverett ]; };})