python3Packages.bugwarrior: 2.0.0 -> 2.1.0 (#480183)
This commit is contained in:
@@ -1,47 +1,60 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
taskwarrior3,
|
||||
versionCheckHook,
|
||||
writableTmpDirAsHomeHook,
|
||||
|
||||
# build-system
|
||||
setuptools,
|
||||
|
||||
# dependencies
|
||||
click,
|
||||
dogpile-cache,
|
||||
importlib-metadata,
|
||||
jinja2,
|
||||
lockfile,
|
||||
pydantic,
|
||||
python-dateutil,
|
||||
pytz,
|
||||
requests,
|
||||
taskw,
|
||||
|
||||
# optional-dependencies
|
||||
# bts
|
||||
debianbts,
|
||||
# bugzilla
|
||||
python-bugzilla,
|
||||
# gmail
|
||||
google-api-python-client,
|
||||
google-auth-oauthlib,
|
||||
# jira
|
||||
jira,
|
||||
# keyring
|
||||
keyring,
|
||||
# trac
|
||||
offtrac,
|
||||
pytestCheckHook,
|
||||
|
||||
# tests
|
||||
docutils,
|
||||
pytest-subtests,
|
||||
pytestCheckHook,
|
||||
responses,
|
||||
sphinx,
|
||||
sphinx-click,
|
||||
sphinx-inline-tabs,
|
||||
taskwarrior3,
|
||||
versionCheckHook,
|
||||
writableTmpDirAsHomeHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "bugwarrior";
|
||||
version = "2.0.0";
|
||||
version = "2.1.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "GothenburgBitFactory";
|
||||
repo = "bugwarrior";
|
||||
tag = version;
|
||||
hash = "sha256-VuHTrkxLZmQOxyig2krVU9UZDDbLY08MfB9si08lh3E=";
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-Px0yOIdXalIJdXMmjMnpl74aaUzaptS8Esy21NMZH98=";
|
||||
};
|
||||
|
||||
build-system = [ setuptools ];
|
||||
@@ -49,17 +62,14 @@ buildPythonPackage rec {
|
||||
dependencies = [
|
||||
click
|
||||
dogpile-cache
|
||||
importlib-metadata
|
||||
jinja2
|
||||
lockfile
|
||||
pydantic
|
||||
python-dateutil
|
||||
pytz
|
||||
requests
|
||||
taskw
|
||||
]
|
||||
++ pydantic.optional-dependencies.email;
|
||||
pythonRemoveDeps = [ "tomli" ];
|
||||
|
||||
optional-dependencies = {
|
||||
bts = [ debianbts ];
|
||||
@@ -74,18 +84,18 @@ buildPythonPackage rec {
|
||||
};
|
||||
|
||||
nativeCheckInputs = [
|
||||
taskwarrior3
|
||||
versionCheckHook
|
||||
writableTmpDirAsHomeHook
|
||||
pytestCheckHook
|
||||
docutils
|
||||
pytest-subtests
|
||||
pytestCheckHook
|
||||
responses
|
||||
sphinx
|
||||
sphinx-click
|
||||
sphinx-inline-tabs
|
||||
taskwarrior3
|
||||
versionCheckHook
|
||||
writableTmpDirAsHomeHook
|
||||
]
|
||||
++ lib.concatAttrValues optional-dependencies;
|
||||
++ lib.concatAttrValues finalAttrs.passthru.optional-dependencies;
|
||||
disabledTestPaths = [
|
||||
# Optional dependencies for these services aren't packaged.
|
||||
"tests/test_kanboard.py"
|
||||
@@ -99,6 +109,16 @@ buildPythonPackage rec {
|
||||
"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" ];
|
||||
@@ -106,7 +126,7 @@ buildPythonPackage rec {
|
||||
meta = {
|
||||
homepage = "https://github.com/GothenburgBitFactory/bugwarrior";
|
||||
description = "Sync github, bitbucket, bugzilla, and trac issues with taskwarrior";
|
||||
changelog = "https://github.com/GothenburgBitFactory/bugwarrior/blob/${src.tag}/CHANGELOG.rst";
|
||||
changelog = "https://github.com/GothenburgBitFactory/bugwarrior/blob/${finalAttrs.src.tag}/CHANGELOG.rst";
|
||||
license = lib.licenses.gpl3Plus;
|
||||
platforms = lib.platforms.all;
|
||||
mainProgram = "bugwarrior";
|
||||
@@ -115,4 +135,4 @@ buildPythonPackage rec {
|
||||
ryneeverett
|
||||
];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user