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>
33 lines
863 B
Nix
33 lines
863 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
pytestCheckHook,
|
|
fetchFromCodeberg,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "desktop-entry-lib";
|
|
version = "3.1";
|
|
pyproject = true;
|
|
|
|
# We could use fetchPypi, but then the tests won't run
|
|
src = fetchFromCodeberg {
|
|
owner = "JakobDev";
|
|
repo = "desktop-entry-lib";
|
|
rev = version;
|
|
hash = "sha256-+c+FuLv88wc4yVw3iyFFtfbocnWzTCIe2DS0SWoj+VI=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
pythonImportsCheck = [ "desktop_entry_lib" ];
|
|
|
|
meta = {
|
|
description = "Allows reading and writing .desktop files according to the Desktop Entry Specification";
|
|
homepage = "https://codeberg.org/JakobDev/desktop-entry-lib";
|
|
changelog = "https://codeberg.org/JakobDev/desktop-entry-lib/releases/tag/${version}";
|
|
license = lib.licenses.bsd2;
|
|
};
|
|
}
|