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

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

49 lines
1010 B
Nix
Raw Normal View History

2021-08-11 07:55:36 +00:00
{ lib
, python3
2021-08-11 07:55:36 +00:00
}:
2021-08-11 09:49:16 +00:00
let
python = python3.override {
packageOverrides = self: super: {
django = super.django_3.overridePythonAttrs (old: rec {
version = "3.1.7";
src = old.src.override {
inherit version;
sha256 = "sha256-Ms55Lum2oMu+w0ASPiKayfdl3/jCpK6SR6FLK6OjZac=";
};
});
2021-08-11 09:49:16 +00:00
};
};
2021-08-11 09:49:16 +00:00
in
python.pkgs.buildPythonApplication rec {
2021-08-11 07:55:36 +00:00
pname = "archivebox";
version = "0.6.2";
src = python.pkgs.fetchPypi {
2021-08-11 07:55:36 +00:00
inherit pname version;
sha256 = "sha256-zHty7lTra6yab9d0q3EqsPG3F+lrnZL6PjQAbL1A2NY=";
};
propagatedBuildInputs = with python.pkgs; [
2021-08-11 07:55:36 +00:00
requests
mypy-extensions
django
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;
};
}