3562403503
Most packages that used fetchFromGitea fetch their sources from Codeberg, so might as well migrate them.
The following command was used for this treewide:
```fish
for i in (rg 'fetchFromGitea \{\n *domain = "codeberg.org";' --multiline --files-with-matches)
sed -z 's/fetchFromGitea {\n *domain = "codeberg.org";/fetchFromCodeberg {/g' $i > $i.tmp && mv $i.tmp $i
sed -i 's/fetchFromGitea/fetchFromCodeberg/g' $i
end
```
The following paths were manually edited:
* pkgs/by-name/xr/xrsh/package.nix
* pkgs/applications/networking/browsers/librewolf/src.nix
* pkgs/by-name/go/gotosocial/package.nix
* pkgs/by-name/ka/katawa-shoujo-re-engineered/package.nix
Co-authored-by: Gutyina Gergő <gutyina.gergo.2@gmail.com>
Signed-off-by: Fernando Rodrigues <alpha@sigmasquadron.net>
67 lines
1.2 KiB
Nix
67 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromCodeberg,
|
|
aiobtclientrpc,
|
|
async-timeout,
|
|
httpx,
|
|
torf,
|
|
pytest-asyncio,
|
|
pytest-mock,
|
|
pytestCheckHook,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "aiobtclientapi";
|
|
version = "1.1.4";
|
|
pyproject = true;
|
|
|
|
src = fetchFromCodeberg {
|
|
owner = "plotski";
|
|
repo = "aiobtclientapi";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-ga3EyKhfdEKkjFktUlgLSX54QbTc/a48vmWjmRqa+4w=";
|
|
};
|
|
|
|
pythonRelaxDeps = [
|
|
"async-timeout"
|
|
];
|
|
|
|
build-system = [
|
|
setuptools
|
|
];
|
|
|
|
dependencies = [
|
|
aiobtclientrpc
|
|
async-timeout
|
|
httpx
|
|
torf
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-asyncio
|
|
pytest-mock
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "aiobtclientapi" ];
|
|
|
|
disabledTests = [
|
|
# Timing-sensitive, e.g. "AssertionError: assert 9 <= 7"
|
|
"test_Monitor_block_until_timeout"
|
|
];
|
|
|
|
disabledTestPaths = [
|
|
# AttributeError
|
|
"tests/clients_test/rtorrent_test/rtorrent_api_test.py"
|
|
];
|
|
|
|
meta = {
|
|
description = "Asynchronous high-level communication with BitTorrent clients";
|
|
homepage = "https://aiobtclientapi.readthedocs.io";
|
|
license = lib.licenses.gpl3Plus;
|
|
maintainers = with lib.maintainers; [ ambroisie ];
|
|
};
|
|
})
|