diff options
author | Ben Siraphob <bensiraphob@gmail.com> | 2021-08-11 16:49:16 +0700 |
---|---|---|
committer | Ben Siraphob <bensiraphob@gmail.com> | 2021-08-11 16:49:27 +0700 |
commit | 92d9a2a0ddc37d6731a991e3073c301b1bf56f9e (patch) | |
tree | 3f7750a82a2e29eab81bf573ef16b51b43c0e302 /pkgs/applications/misc/archivebox | |
parent | 32cdb3956c54d34a46e0b18c50c98048aefbddba (diff) |
archivebox: fix runtime
Diffstat (limited to 'pkgs/applications/misc/archivebox')
-rw-r--r-- | pkgs/applications/misc/archivebox/default.nix | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/pkgs/applications/misc/archivebox/default.nix b/pkgs/applications/misc/archivebox/default.nix index c36db657c07a6..bd1a98ef9cce6 100644 --- a/pkgs/applications/misc/archivebox/default.nix +++ b/pkgs/applications/misc/archivebox/default.nix @@ -13,6 +13,17 @@ , ipython }: +let + django_3' = django_3.overridePythonAttrs (old: rec { + pname = "Django"; + version = "3.1.7"; + src = fetchPypi { + inherit pname version; + sha256 = "sha256-Ms55Lum2oMu+w0ASPiKayfdl3/jCpK6SR6FLK6OjZac="; + }; + }); +in + buildPythonApplication rec { pname = "archivebox"; version = "0.6.2"; @@ -22,15 +33,10 @@ buildPythonApplication rec { 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_3' django_extensions dateparser youtube-dl |