nixpkgs/pkgs/development/python-modules/gidgethub/default.nix
Martin Weinelt 0215034f25 python3.pkgs: Migrate fetchers to use hash
when they already rely on SRI hashes.
2023-03-03 23:59:29 +01:00

55 lines
955 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, uritemplate
, pyjwt
, pytestCheckHook
, aiohttp
, httpx
, importlib-resources
, pytest-asyncio
, pytest-tornasync
}:
buildPythonPackage rec {
pname = "gidgethub";
version = "5.2.1";
format = "flit";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-pTP4WleVUmFDPCUHAUdjBMw3QDfAq2aw5TcrSEZ0nVw=";
};
propagatedBuildInputs = [
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 = with lib; {
description = "An async GitHub API library";
homepage = "https://github.com/brettcannon/gidgethub";
license = licenses.asl20;
maintainers = [ maintainers.costrouc ];
};
}