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>
42 lines
869 B
Nix
42 lines
869 B
Nix
{
|
|
aiohttp,
|
|
buildPythonPackage,
|
|
fetchFromCodeberg,
|
|
hatchling,
|
|
lib,
|
|
yarl,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "eheimdigital";
|
|
version = "1.5.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromCodeberg {
|
|
owner = "autinerd";
|
|
repo = "eheimdigital";
|
|
tag = version;
|
|
hash = "sha256-+11TtI9+hEGghKs9UeJRUTUpwA40OUmCp0vnuIH+Wn4=";
|
|
};
|
|
|
|
build-system = [ hatchling ];
|
|
|
|
dependencies = [
|
|
aiohttp
|
|
yarl
|
|
];
|
|
|
|
pythonImportsCheck = [ "eheimdigital" ];
|
|
|
|
# upstream tests are dysfunctional
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
changelog = "https://codeberg.org/autinerd/eheimdigital/releases/tag/${src.tag}";
|
|
description = "Offers a Python API for the EHEIM Digital smart aquarium devices";
|
|
homepage = "https://codeberg.org/autinerd/eheimdigital";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ dotlambda ];
|
|
};
|
|
}
|