erpnext-nix/python/premailer.nix
teutat3s e74f2d0f04
frappe: fix python premailer dependency
premailer.premailer.ExternalFileLoadingError: Unable to load external
file 'assets/frappe/dist/css/email.bundle.HETZ7G4Y.css' because it's
explicitly not allowed

Unsupported new option introduced in premailer version 3.9.0
allow_loading_external_files=False
https://github.com/peterbe/premailer/blob/master/CHANGES.rst#390

Also, sort dependencies in python overlay by usage
2023-07-18 13:23:52 +02:00

23 lines
403 B
Nix

{ buildPythonPackage
, fetchPypi
, cssselect
, cssutils
, lxml
, mock
, nose
, requests
, cachetools
}:
buildPythonPackage rec {
pname = "premailer";
version = "3.8.0";
buildInputs = [ mock nose ];
propagatedBuildInputs = [ cachetools cssselect cssutils lxml requests ];
src = fetchPypi {
inherit pname version;
sha256 = "sha256-TU4VckTO6UWgDBT+qp5qOusvryYj/2qLoIr99QX6DyU=";
};
}