depot/third_party/nixpkgs/pkgs/development/python-modules/django-markdownx/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

46 lines
971 B
Nix

{
lib,
buildPythonPackage,
django,
fetchFromGitHub,
markdown,
pillow,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "django-markdownx";
version = "4.0.7";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "neutronX";
repo = "django-markdownx";
rev = "refs/tags/v${version}";
hash = "sha256-FZPUlogVd3FMGeH1vfKHA3tXVps0ET+UCQJflpiV2lE=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
django
markdown
pillow
];
# tests only executeable in vagrant
doCheck = false;
pythonImportsCheck = [ "markdownx" ];
meta = with lib; {
description = "Comprehensive Markdown plugin built for Django";
homepage = "https://github.com/neutronX/django-markdownx/";
changelog = "https://github.com/neutronX/django-markdownx/releases/tag/v${version}";
license = licenses.bsd2;
maintainers = with maintainers; [ derdennisop ];
};
}