nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 90 lines 1.9 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 6 # build-system 7 setuptools, 8 9 # dependencies 10 anyascii, 11 beautifulsoup4, 12 django, 13 django-filter, 14 django-modelcluster, 15 django-modelsearch, 16 django-taggit, 17 django-tasks, 18 django-treebeard, 19 djangorestframework, 20 draftjs-exporter, 21 laces, 22 openpyxl, 23 permissionedforms, 24 pillow, 25 requests, 26 telepath, 27 willow, 28 29 # tests 30 callPackage, 31}: 32 33buildPythonPackage rec { 34 pname = "wagtail"; 35 version = "7.2.1"; 36 pyproject = true; 37 38 # The GitHub source requires some assets to be compiled, which in turn 39 # requires fixing the upstream package lock. We need to use the PyPI release 40 # until https://github.com/wagtail/wagtail/pull/13136 gets merged. 41 src = fetchPypi { 42 inherit pname version; 43 hash = "sha256-OIu0LEgYwIGk3fNub0Upv7xU7SYqkbZbDl+VFHbyz3Q="; 44 }; 45 46 build-system = [ 47 setuptools 48 ]; 49 50 pythonRelaxDeps = [ "django-tasks" ]; 51 52 dependencies = [ 53 anyascii 54 beautifulsoup4 55 django 56 django-filter 57 django-modelcluster 58 django-modelsearch 59 django-taggit 60 django-tasks 61 django-treebeard 62 djangorestframework 63 draftjs-exporter 64 laces 65 openpyxl 66 permissionedforms 67 pillow 68 requests 69 telepath 70 willow 71 ] 72 ++ willow.optional-dependencies.heif; 73 74 # Tests are in separate derivation because they require a package that depends 75 # on wagtail (wagtail-factories) 76 doCheck = false; 77 78 passthru.tests.wagtail = callPackage ./tests.nix { }; 79 80 pythonImportsCheck = [ "wagtail" ]; 81 82 meta = { 83 description = "Django content management system focused on flexibility and user experience"; 84 mainProgram = "wagtail"; 85 homepage = "https://github.com/wagtail/wagtail"; 86 changelog = "https://github.com/wagtail/wagtail/blob/v${version}/CHANGELOG.txt"; 87 license = lib.licenses.bsd3; 88 maintainers = with lib.maintainers; [ sephi ]; 89 }; 90}