aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/applications/office/paperless/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/applications/office/paperless/default.nix')
-rw-r--r--nixpkgs/pkgs/applications/office/paperless/default.nix26
1 files changed, 13 insertions, 13 deletions
diff --git a/nixpkgs/pkgs/applications/office/paperless/default.nix b/nixpkgs/pkgs/applications/office/paperless/default.nix
index c549b107c54..ebd057da5ce 100644
--- a/nixpkgs/pkgs/applications/office/paperless/default.nix
+++ b/nixpkgs/pkgs/applications/office/paperless/default.nix
@@ -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