organized pkgs by packaging tests and awaiting pr

This commit is contained in:
2024-12-15 00:28:06 -06:00
parent 7e658479f8
commit 850550ae9a
7 changed files with 82 additions and 1 deletions

62
pkgs_wip/aviator.nix Normal file
View File

@@ -0,0 +1,62 @@
{
stdenv,
lib,
python3,
python3Packages,
fetchFromGitHub,
meson,
appstream-glib,
pkg-config,
glib,
libadwaita,
wrapGAppsHook4,
desktop-file-utils,
ninja,
gobject-introspection,
gtk4,
}:
stdenv.mkDerivation (finaAttrs: rec {
pname = "aviator";
version = "0.6.0";
pyproject = true;
src = fetchFromGitHub {
owner = "gianni-rosato";
repo = "aviator";
rev = version;
hash = "sha256-5PjQgCapI9WU4kR0k0uYWnFERYEZxCuTnTbD1oN+Zms=";
};
nativeBuildInputs = [
appstream-glib
meson
wrapGAppsHook4
pkg-config
desktop-file-utils
ninja
python3Packages.pygobject3
gobject-introspection
];
buildInputs = [
gtk4
glib
libadwaita
(python3.withPackages (
ps: with ps; [
pygobject3
ffmpeg-progress-yield
ffmpeg-python
]
))
];
meta = {
description = "A lightweight, Flatpak-first, easy-to-use GUI utility for encoding with SVT-AV1 & Opus";
homepage = "https://github.com/gianni-rosato/aviator";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ CaptainJawZ ];
mainProgram = "aviator";
};
})

34
pkgs_wip/bencodepy.nix Normal file
View File

@@ -0,0 +1,34 @@
{
lib,
python3,
fetchPypi,
}:
python3.pkgs.buildPythonApplication rec {
pname = "bencodepy";
version = "0.9.5";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-r0chNNc+pY7as8LLLyz2HrnXg5CChMPS1bHP0434ZLg=";
extension = "zip";
};
build-system = [
python3.pkgs.setuptools
python3.pkgs.wheel
];
pythonImportsCheck = [
"bencodepy"
];
meta = {
description = "Bencode encoder/decoder written in Python 3 under the GPLv2";
homepage = "https://pypi.org/project/bencodepy/";
license = lib.licenses.gpl2Only;
maintainers = with lib.maintainers; [ CaptainJawZ ];
mainProgram = "bencodepy";
};
}

46
pkgs_wip/qbit-manage.nix Normal file
View File

@@ -0,0 +1,46 @@
{
lib,
python3,
fetchFromGitHub,
callPackage,
}:
python3.pkgs.buildPythonApplication rec {
pname = "qbit-manage";
version = "4.1.14";
pyproject = true;
src = fetchFromGitHub {
owner = "StuffAnThings";
repo = "qbit_manage";
rev = "v${version}";
hash = "sha256-JTQZlJ2d0oOpT8lIf9mgQ/onTs5jiWfvzFx0XBjbCQo=";
};
build-system = [
python3.pkgs.setuptools
python3.pkgs.wheel
];
dependencies = with python3.pkgs; [
croniter
gitpython
humanize
pytimeparse2
qbittorrent-api
requests
retrying
ruamel-yaml
schedule
(callPackage ./bencodepy.nix { })
];
meta = {
description = "This tool will help manage tedious tasks in qBittorrent and automate them. Tag, categorize, remove Orphaned data, remove unregistered torrents and much much more";
homepage = "https://github.com/StuffAnThings/qbit_manage";
changelog = "https://github.com/StuffAnThings/qbit_manage/blob/${src.rev}/CHANGELOG";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ CaptainJawZ ];
mainProgram = "qbit-manage";
};
}

70
pkgs_wip/resources.nix Normal file
View File

@@ -0,0 +1,70 @@
{
lib,
stdenv,
fetchFromGitHub,
cargo,
meson,
ninja,
pkg-config,
rustPlatform,
rustc,
wrapGAppsHook4,
cairo,
gdk-pixbuf,
glib,
gtk4,
libadwaita,
pango,
desktop-file-utils,
appstream,
git,
}:
stdenv.mkDerivation rec {
pname = "resources";
version = "1.7.1";
src = fetchFromGitHub {
owner = "nokyan";
repo = "resources";
rev = "v${version}";
hash = "sha256-SHawaH09+mDovFiznZ+ZkUgUbv5tQGcXBgUGrdetOcA=";
};
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
name = "${pname}-${version}";
hash = "sha256-tUD+gx9nQiGWKKRPcR7OHbPvU2j1dQjYck7FF9vYqSQ=";
};
nativeBuildInputs = [
cargo
meson
ninja
pkg-config
rustPlatform.cargoSetupHook
rustc
wrapGAppsHook4
desktop-file-utils
appstream
git
];
buildInputs = [
cairo
gdk-pixbuf
glib
gtk4
libadwaita
pango
];
meta = {
description = "Keep an eye on system resources";
homepage = "https://github.com/nokyan/resources";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ CaptainJawZ ];
mainProgram = "resources";
platforms = lib.platforms.all;
};
}