nixpkgs/pkgs/applications/misc/archivebox/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

60 lines
1.3 KiB
Nix
Raw Normal View History

2021-08-11 09:55:36 +02:00
{ lib
, python3
2021-08-11 09:55:36 +02:00
}:
2021-08-11 11:49:16 +02:00
let
python = python3.override {
packageOverrides = self: super: {
django = super.django_3.overridePythonAttrs (old: rec {
2022-06-12 06:40:02 +02:00
version = "3.1.14";
src = old.src.override {
inherit version;
2022-06-12 06:40:02 +02:00
sha256 = "72a4a5a136a214c39cf016ccdd6b69e2aa08c7479c66d93f3a9b5e4bb9d8a347";
};
meta = old.meta // {
knownVulnerabilities = [
"CVE-2021-45115"
"CVE-2021-45116"
"CVE-2021-45452"
"CVE-2022-23833"
"CVE-2022-22818"
"CVE-2022-28347"
"CVE-2022-28346"
];
};
});
2021-08-11 11:49:16 +02:00
};
};
2021-08-11 11:49:16 +02:00
in
python.pkgs.buildPythonApplication rec {
2021-08-11 09:55:36 +02:00
pname = "archivebox";
version = "0.6.2";
src = python.pkgs.fetchPypi {
2021-08-11 09:55:36 +02:00
inherit pname version;
sha256 = "sha256-zHty7lTra6yab9d0q3EqsPG3F+lrnZL6PjQAbL1A2NY=";
};
propagatedBuildInputs = with python.pkgs; [
2021-08-11 09:55:36 +02:00
requests
mypy-extensions
django
django-extensions
2021-08-11 09:55:36 +02:00
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;
};
}