Files
nixpkgs/pkgs/development/python-modules/jira/default.nix
T
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

86 lines
1.5 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
defusedxml,
flaky,
ipython,
keyring,
packaging,
pillow,
pyjwt,
pytestCheckHook,
pytest-cov-stub,
requests,
requests-futures,
requests-mock,
requests-oauthlib,
requests-toolbelt,
setuptools,
setuptools-scm,
typing-extensions,
}:
buildPythonPackage rec {
pname = "jira";
version = "3.10.5";
pyproject = true;
src = fetchFromGitHub {
owner = "pycontribs";
repo = "jira";
tag = version;
hash = "sha256-Gj9RmNJwmYQviXeNLL6WWFIO91jy6zY/s29Gy18lzyA=";
};
build-system = [
setuptools
setuptools-scm
];
dependencies = [
defusedxml
packaging
requests
requests-oauthlib
requests-toolbelt
pillow
typing-extensions
];
optional-dependencies = {
cli = [
ipython
keyring
];
opt = [
# filemagic
pyjwt
# requests-jwt
# requests-keyberos
];
async = [ requests-futures ];
};
nativeCheckInputs = [
flaky
pytestCheckHook
pytest-cov-stub
requests-mock
];
pythonImportsCheck = [ "jira" ];
# impure tests because of connectivity attempts to jira servers
doCheck = false;
meta = {
description = "Library to interact with the JIRA REST API";
homepage = "https://github.com/pycontribs/jira";
changelog = "https://github.com/pycontribs/jira/releases/tag/${src.tag}";
license = lib.licenses.bsd2;
maintainers = [ ];
mainProgram = "jirashell";
};
}