nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 59 lines 1.2 kB view raw
1{ 2 lib, 3 fetchFromGitHub, 4 python3Packages, 5 waymore, 6 testers, 7}: 8 9python3Packages.buildPythonApplication rec { 10 pname = "waymore"; 11 version = "6.5"; 12 pyproject = true; 13 14 src = fetchFromGitHub { 15 owner = "xnl-h4ck3r"; 16 repo = "waymore"; 17 tag = "v${version}"; 18 hash = "sha256-3nvdbQydtnk/tod2WyJLAGKKjwTv6Z6JA7+qwqgp2o4="; 19 }; 20 21 preBuild = '' 22 export HOME=$(mktemp -d) 23 ''; 24 25 build-system = with python3Packages; [ 26 setuptools 27 ]; 28 29 pythonRemoveDeps = [ 30 # python already provides urllib.parse 31 "urlparse3" 32 ]; 33 34 dependencies = with python3Packages; [ 35 requests 36 termcolor 37 pyyaml 38 psutil 39 uritools 40 tldextract 41 ]; 42 43 pythonImportsCheck = [ "waymore.waymore" ]; 44 45 passthru.tests.version = testers.testVersion { 46 package = waymore; 47 command = "waymore --version"; 48 version = "Waymore - v${version}"; 49 }; 50 51 meta = { 52 description = "Find way more from the Wayback Machine"; 53 homepage = "https://github.com/xnl-h4ck3r/waymore"; 54 changelog = "https://github.com/xnl-h4ck3r/waymore/releases/tag/v${version}"; 55 license = lib.licenses.mit; 56 maintainers = with lib.maintainers; [ genga898 ]; 57 mainProgram = "waymore"; 58 }; 59}