paperless: fix build

Paperless was dependent on older older versions of recently updated
Python packages.
This commit is contained in:
Erik Arvstedt
2020-09-09 19:39:06 -07:00
committed by Jon
parent a81c38893c
commit 684496cfb6
2 changed files with 43 additions and 13 deletions
+13 -13
View File
@@ -106,26 +106,26 @@ let
};
python = python3.override {
packageOverrides = self: super: {
# Paperless only supports Django 2.0
django = django_2_0 super;
packageOverrides = self: super: let
customPkgs = import ./python-modules super fetchFromGitHub; in
{
pyocr = pyocrWithUserTesseract super;
# Paperless only supports Django 2.0
django = customPkgs.django_2_0;
# Paperless is incompatible with factory_boy >= 3
factory_boy = customPkgs.factory_boy_2_12_0;
# The current version of django_extensions is incompatible with django 2.0
django_extensions = customPkgs.django_extensions_2_2_8;
# These are pre-release versions, hence they are private to this pkg
django-filter = self.callPackage ./python-modules/django-filter.nix {};
django-crispy-forms = self.callPackage ./python-modules/django-crispy-forms.nix {};
};
};
django_2_0 = pyPkgs: pyPkgs.django_2_2.overrideDerivation (_: rec {
pname = "Django";
version = "2.0.12";
name = "${pname}-${version}";
src = pyPkgs.fetchPypi {
inherit pname version;
sha256 = "15s8z54k0gf9brnz06521bikm60ddw5pn6v3nbvnl47j1jjsvwz2";
};
});
runtimePackages = with python.pkgs; [
dateparser
dateutil