about summary refs log tree commit diff
path: root/nixpkgs
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2020-01-17 01:57:13 +0000
committerAlyssa Ross <hi@alyssa.is>2020-01-17 03:16:50 +0000
commitf05f316bf4eb179a1b1dc46ea4d0e8d5e33bf949 (patch)
tree1af0175c3dcafb81b5a74151ea48ecc30953d4a4 /nixpkgs
parent5dc386ecaafb5f826a6205e41fb2568f0e715fec (diff)
downloadnixlib-f05f316bf4eb179a1b1dc46ea4d0e8d5e33bf949.tar
nixlib-f05f316bf4eb179a1b1dc46ea4d0e8d5e33bf949.tar.gz
nixlib-f05f316bf4eb179a1b1dc46ea4d0e8d5e33bf949.tar.bz2
nixlib-f05f316bf4eb179a1b1dc46ea4d0e8d5e33bf949.tar.lz
nixlib-f05f316bf4eb179a1b1dc46ea4d0e8d5e33bf949.tar.xz
nixlib-f05f316bf4eb179a1b1dc46ea4d0e8d5e33bf949.tar.zst
nixlib-f05f316bf4eb179a1b1dc46ea4d0e8d5e33bf949.zip
python3.pkgs.hyperkitty: use checkInputs
The previously propagated build inputs are optional, and so are
included in checkInputs so the tests can run, but not propagated so
they aren't included if unneeded.
Diffstat (limited to 'nixpkgs')
-rw-r--r--nixpkgs/pkgs/servers/mail/mailman/hyperkitty.nix11
1 files changed, 8 insertions, 3 deletions
diff --git a/nixpkgs/pkgs/servers/mail/mailman/hyperkitty.nix b/nixpkgs/pkgs/servers/mail/mailman/hyperkitty.nix
index 79a96e24e66e..1f8da7c3c403 100644
--- a/nixpkgs/pkgs/servers/mail/mailman/hyperkitty.nix
+++ b/nixpkgs/pkgs/servers/mail/mailman/hyperkitty.nix
@@ -15,14 +15,19 @@ buildPythonPackage rec {
   };
 
   nativeBuildInputs = [ isort ];
-  buildInputs = [ coverage mock ];
   propagatedBuildInputs = [
     robot-detection django_extensions rjsmin cssmin django-mailman3
     django-haystack flufl_lock networkx dateutil defusedxml
-    django-paintstore djangorestframework django django-q flufl_lock
-    django_compressor beautifulsoup4 six psycopg2 whoosh isort elasticsearch
+    django-paintstore djangorestframework django django-q
+    django_compressor six psycopg2 isort
   ];
 
+  # Some of these are optional runtime dependencies that are not
+  # listed as dependencies in setup.py.  To use these, they should be
+  # dependencies of the Django Python environment, but not of
+  # HyperKitty so they're not included for people who don't need them.
+  checkInputs = [ beautifulsoup4 coverage elasticsearch mock whoosh ];
+
   checkPhase = ''
     cd $NIX_BUILD_TOP/$sourceRoot
     PYTHONPATH=.:$PYTHONPATH python example_project/manage.py test \