Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, django 5 6# optionals 7, bleach 8, docutils 9, markdown 10, pygments 11, python-creole 12, smartypants 13, textile 14 15# tests 16, pytest-django 17, pytestCheckHook 18}: 19 20buildPythonPackage rec { 21 pname = "django-markup"; 22 version = "1.7.2"; 23 format = "setuptools"; 24 25 src = fetchFromGitHub { 26 owner = "bartTC"; 27 repo = "django-markup"; 28 rev = "refs/tags/v${version}"; 29 hash = "sha256-NvGlvrXOwDrwHhbFHrWf7Kz9sEzTTyq84/Z6jjRNy8Q="; 30 }; 31 32 postPatch = '' 33 sed -i "/--cov/d" pyproject.toml 34 ''; 35 36 buildInputs = [ 37 django 38 ]; 39 40 passthru.optional-dependencies = { 41 all_filter_dependencies = [ 42 bleach 43 docutils 44 markdown 45 pygments 46 python-creole 47 smartypants 48 textile 49 ]; 50 }; 51 52 pythonImportsCheck = [ 53 "django_markup" 54 ]; 55 56 nativeCheckInputs = [ 57 pytest-django 58 pytestCheckHook 59 ] ++ passthru.optional-dependencies.all_filter_dependencies; 60 61 env.DJANGO_SETTINGS_MODULE = "django_markup.tests"; 62 63 meta = with lib; { 64 description = "Generic Django application to convert text with specific markup to html."; 65 homepage = "https://github.com/bartTC/django-markup"; 66 changelog = "https://github.com/bartTC/django-markup/blob/v${version}/CHANGELOG.rst"; 67 license = licenses.mit; 68 maintainers = with maintainers; [ hexa ]; 69 }; 70}