mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
python3Packages.aiogithubapi: init at 21.8.1
This commit is contained in:
parent
d9de842f58
commit
92a5311c17
2 changed files with 55 additions and 0 deletions
53
pkgs/development/python-modules/aiogithubapi/default.nix
Normal file
53
pkgs/development/python-modules/aiogithubapi/default.nix
Normal file
|
@ -0,0 +1,53 @@
|
||||||
|
{ lib
|
||||||
|
, aiohttp
|
||||||
|
, aresponses
|
||||||
|
, async-timeout
|
||||||
|
, backoff
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, pytest-asyncio
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "aiogithubapi";
|
||||||
|
version = "21.8.1";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.8";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "ludeeus";
|
||||||
|
repo = pname;
|
||||||
|
rev = version;
|
||||||
|
sha256 = "1l59bb956gymi2dkgg88mr0nc80wqvw2dv69qf4f1xr3jxy03qa2";
|
||||||
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
# Upstream is releasing with the help of a CI to PyPI, GitHub releases
|
||||||
|
# are not in their focus
|
||||||
|
substituteInPlace setup.py \
|
||||||
|
--replace 'version="main",' 'version="${version}",'
|
||||||
|
'';
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
aiohttp
|
||||||
|
async-timeout
|
||||||
|
backoff
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
aresponses
|
||||||
|
pytest-asyncio
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "aiogithubapi" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Python client for the GitHub API";
|
||||||
|
homepage = "https://github.com/ludeeus/aiogithubapi";
|
||||||
|
license = with licenses; [ mit ];
|
||||||
|
maintainers = with maintainers; [ fab ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -279,6 +279,8 @@ in {
|
||||||
|
|
||||||
aioguardian = callPackage ../development/python-modules/aioguardian { };
|
aioguardian = callPackage ../development/python-modules/aioguardian { };
|
||||||
|
|
||||||
|
aiogithubapi = callPackage ../development/python-modules/aiogithubapi { };
|
||||||
|
|
||||||
aioh2 = callPackage ../development/python-modules/aioh2 { };
|
aioh2 = callPackage ../development/python-modules/aioh2 { };
|
||||||
|
|
||||||
aioharmony = callPackage ../development/python-modules/aioharmony { };
|
aioharmony = callPackage ../development/python-modules/aioharmony { };
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue