Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.6 kB · 84 lines
Nix
at flake-libs
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder,
# build-system poetry-core,
# dependencies django,
# optionals bleach, docutils, markdown, pygments, python-creole, smartypants, textile,
# tests pytest-django, pytestCheckHook,}:
buildPythonPackage rec { pname = "django-markup"; version = "1.9.1"; pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub { owner = "bartTC"; repo = "django-markup"; tag = "v${version}"; hash = "sha256-dj5Z36W4Stly203SKWpR/DF+Wf7+ejbZnDCmHNRb3c0="; };
postPatch = '' sed -i "/--cov/d" pyproject.toml '';
build-system = [ poetry-core ];
dependencies = [ django ];
optional-dependencies = { all_filter_dependencies = [ bleach docutils markdown pygments python-creole smartypants textile ]; };
pythonImportsCheck = [ "django_markup" ];
nativeCheckInputs = [ pytest-django pytestCheckHook ] ++ optional-dependencies.all_filter_dependencies;
disabledTests = [ # pygments compat issue "test_rst_with_pygments" ];
preCheck = '' export DJANGO_SETTINGS_MODULE=django_markup.tests '';
meta = with lib; { description = "Generic Django application to convert text with specific markup to html"; homepage = "https://github.com/bartTC/django-markup"; changelog = "https://github.com/bartTC/django-markup/blob/v${version}/CHANGELOG.md"; license = licenses.mit; maintainers = with maintainers; [ hexa ]; };}