Files
nixpkgs/pkgs/development/python-modules/gidgethub/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

59 lines
977 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pythonOlder,
flit-core,
uritemplate,
pyjwt,
pytestCheckHook,
aiohttp,
httpx,
importlib-resources,
pytest-asyncio,
pytest-tornasync,
}:
buildPythonPackage rec {
pname = "gidgethub";
version = "5.4.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-dHDXcj18F0NHGi1i55yHUvuhKxwJcuS61XJSM4pQHb0=";
};
build-system = [ flit-core ];
dependencies = [
uritemplate
pyjwt
]
++ pyjwt.optional-dependencies.crypto;
nativeCheckInputs = [
pytestCheckHook
aiohttp
httpx
importlib-resources
pytest-asyncio
pytest-tornasync
];
disabledTests = [
# Require internet connection
"test__request"
"test_get"
];
meta = {
description = "Async GitHub API library";
homepage = "https://github.com/brettcannon/gidgethub";
license = lib.licenses.asl20;
maintainers = [ ];
};
}