2021-08-11 07:55:36 +00:00
|
|
|
{ lib
|
2022-02-15 07:18:02 +00:00
|
|
|
, python3
|
2023-05-21 21:36:06 +00:00
|
|
|
, fetchFromGitHub
|
2023-05-25 14:07:31 +00:00
|
|
|
, fetchPypi
|
2021-08-11 07:55:36 +00:00
|
|
|
}:
|
|
|
|
|
2021-08-11 09:49:16 +00:00
|
|
|
let
|
2022-02-15 07:18:02 +00:00
|
|
|
python = python3.override {
|
|
|
|
packageOverrides = self: super: {
|
|
|
|
django = super.django_3.overridePythonAttrs (old: rec {
|
2022-06-12 04:40:02 +00:00
|
|
|
version = "3.1.14";
|
2022-02-15 07:18:02 +00:00
|
|
|
src = old.src.override {
|
|
|
|
inherit version;
|
2022-08-15 19:22:53 +00:00
|
|
|
hash = "sha256-cqSloTaiFMOc8BbM3Wtp4qoIx0ecZtk/OpteS7nYo0c=";
|
2022-02-15 07:18:02 +00:00
|
|
|
};
|
2022-06-12 04:43:20 +00:00
|
|
|
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"
|
|
|
|
];
|
|
|
|
};
|
2022-02-15 07:18:02 +00:00
|
|
|
});
|
2023-05-21 21:36:06 +00:00
|
|
|
django-extensions = super.django-extensions.overridePythonAttrs (old: rec {
|
|
|
|
version = "3.1.5";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
inherit version;
|
|
|
|
owner = "django-extensions";
|
|
|
|
repo = "django-extensions";
|
|
|
|
rev = "e43f383dae3a35237e42f6acfe1207a8e7e7bdf5";
|
|
|
|
hash = "sha256-NAMa78KhAuoJfp0Cb0Codz84sRfRQ1JhSLNYRI4GBPM=";
|
|
|
|
};
|
|
|
|
});
|
2021-08-11 09:49:16 +00:00
|
|
|
};
|
2022-02-15 07:18:02 +00:00
|
|
|
};
|
2021-08-11 09:49:16 +00:00
|
|
|
in
|
|
|
|
|
2022-02-15 07:18:02 +00:00
|
|
|
python.pkgs.buildPythonApplication rec {
|
2021-08-11 07:55:36 +00:00
|
|
|
pname = "archivebox";
|
|
|
|
version = "0.6.2";
|
|
|
|
|
2023-05-25 14:07:31 +00:00
|
|
|
src = fetchPypi {
|
2021-08-11 07:55:36 +00:00
|
|
|
inherit pname version;
|
|
|
|
sha256 = "sha256-zHty7lTra6yab9d0q3EqsPG3F+lrnZL6PjQAbL1A2NY=";
|
|
|
|
};
|
|
|
|
|
2022-02-15 07:18:02 +00:00
|
|
|
propagatedBuildInputs = with python.pkgs; [
|
2021-08-11 07:55:36 +00:00
|
|
|
requests
|
|
|
|
mypy-extensions
|
2022-02-15 07:18:02 +00:00
|
|
|
django
|
2022-01-09 15:24:52 +00:00
|
|
|
django-extensions
|
2021-08-11 07:55:36 +00: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;
|
|
|
|
};
|
|
|
|
}
|