diff --git a/pkgs/development/python-modules/django-markup/default.nix b/pkgs/development/python-modules/django-markup/default.nix index 6d7dd7f59453..dce53f40ad93 100644 --- a/pkgs/development/python-modules/django-markup/default.nix +++ b/pkgs/development/python-modules/django-markup/default.nix @@ -3,6 +3,11 @@ buildPythonPackage, fetchFromGitHub, pythonOlder, + + # build-system + poetry-core, + + # dependencies django, # optionals @@ -21,7 +26,7 @@ buildPythonPackage rec { pname = "django-markup"; - version = "1.8.1"; + version = "1.9"; pyproject = true; disabled = pythonOlder "3.8"; @@ -30,14 +35,16 @@ buildPythonPackage rec { owner = "bartTC"; repo = "django-markup"; rev = "refs/tags/v${version}"; - hash = "sha256-Hhcp4wVJEcYV1lEZ2jWf7nOlt5m4lVAfC6VmKIdxf4c="; + hash = "sha256-HSszXZ86hLxRgBZHIs1TA7F7MHLlS58oAhG50yrTquE="; }; postPatch = '' sed -i "/--cov/d" pyproject.toml ''; - buildInputs = [ django ]; + build-system = [ poetry-core ]; + + dependencies = [ django ]; passthru.optional-dependencies = { all_filter_dependencies = [ @@ -58,7 +65,9 @@ buildPythonPackage rec { pytestCheckHook ] ++ passthru.optional-dependencies.all_filter_dependencies; - env.DJANGO_SETTINGS_MODULE = "django_markup.tests"; + preCheck = '' + export DJANGO_SETTINGS_MODULE=django_markup.tests + ''; meta = with lib; { description = "Generic Django application to convert text with specific markup to html";