From e5fd43a1559ddecfdedf99aea5437dce64bcfe37 Mon Sep 17 00:00:00 2001 From: Ben Siraphob Date: Wed, 11 Aug 2021 14:55:36 +0700 Subject: [PATCH] archivebox: init at 0.6.2 --- pkgs/applications/misc/archivebox/default.nix | 50 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 52 insertions(+) create mode 100644 pkgs/applications/misc/archivebox/default.nix diff --git a/pkgs/applications/misc/archivebox/default.nix b/pkgs/applications/misc/archivebox/default.nix new file mode 100644 index 000000000000..c36db657c07a --- /dev/null +++ b/pkgs/applications/misc/archivebox/default.nix @@ -0,0 +1,50 @@ +{ lib +, buildPythonApplication +, fetchPypi +, requests +, mypy-extensions +, django_3 +, django_extensions +, dateparser +, youtube-dl +, python-crontab +, croniter +, w3lib +, ipython +}: + +buildPythonApplication rec { + pname = "archivebox"; + version = "0.6.2"; + + src = fetchPypi { + inherit pname version; + sha256 = "sha256-zHty7lTra6yab9d0q3EqsPG3F+lrnZL6PjQAbL1A2NY="; + }; + + # Relax some dependencies + postPatch = '' + substituteInPlace setup.py --replace '"django>=3.1.3,<3.2"' '"django>=3.1.3"' + ''; + + propagatedBuildInputs = [ + requests + mypy-extensions + django_3 + django_extensions + dateparser + youtube-dl + python-crontab + croniter + w3lib + ipython + ]; + + meta = with lib; { + description = "Open source self-hosted web archiving"; + homepage = "https://archivebox.io"; + license = licenses.mit; + maintainers = with maintainers; [ siraben ]; + platforms = platforms.unix; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 4ac1624d7977..858848ee3b60 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1124,6 +1124,8 @@ with pkgs; ArchiSteamFarm = callPackage ../applications/misc/ArchiSteamFarm { }; + archivebox = python3Packages.callPackage ../applications/misc/archivebox { }; + archivemount = callPackage ../tools/filesystems/archivemount { }; archivy = python3Packages.callPackage ../applications/misc/archivy { };