Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

waymore: init at 4.7 #366822

Merged
merged 1 commit into from
Dec 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
waymore: init at 4.7
waymore: remove versionCheckHook

waymore: add passthru tests
  • Loading branch information
genga898 committed Dec 24, 2024
commit ab9f4b1ab35f9d566a16789163049c8995a8dc9f
51 changes: 51 additions & 0 deletions pkgs/by-name/wa/waymore/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
lib,
fetchFromGitHub,
python3Packages,
waymore,
testers,
}:

python3Packages.buildPythonApplication rec {
pname = "waymore";
version = "4.7";

src = fetchFromGitHub {
owner = "xnl-h4ck3r";
repo = "waymore";
tag = "v${version}";
hash = "sha256-oaswuXQPdAl2XExwEWnSN15roqNj9OVUr1Y1vsX461o=";
};

preBuild = ''
export HOME=$(mktemp -d)
'';

build-system = with python3Packages; [
setuptools
];

dependencies = with python3Packages; [
requests
termcolor
pyyaml
psutil
uritools
tldextract
];

passthru.tests.version = testers.testVersion {
package = waymore;
command = "waymore --version";
version = "Waymore - v${version}";
};

meta = {
description = "Find way more from the Wayback Machine";
homepage = "https://github.com/xnl-h4ck3r/waymore";
changelog = "https://github.com/xnl-h4ck3r/waymore/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ genga898 ];
mainProgram = "waymore";
};
}
Loading