2020-11-05 15:30:55 -08:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy27,
|
2019-09-18 17:20:20 -07:00
|
|
|
cssselect, cssutils, lxml, mock, nose, requests, cachetools
|
2017-09-01 01:28:52 -07:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "premailer";
|
2020-06-05 23:47:22 -07:00
|
|
|
version = "3.7.0";
|
2020-11-05 15:30:55 -08:00
|
|
|
disabled = isPy27; # no longer compatible with urllib
|
2017-09-01 01:28:52 -07:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-05 23:47:22 -07:00
|
|
|
sha256 = "5eec9603e84cee583a390de69c75192e50d76e38ef0292b027bd64923766aca7";
|
2017-09-01 01:28:52 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ mock nose ];
|
2019-09-18 17:20:20 -07:00
|
|
|
propagatedBuildInputs = [ cachetools cssselect cssutils lxml requests ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Turns CSS blocks into style attributes ";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/peterbe/premailer";
|
2019-09-18 17:20:20 -07:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
};
|
2017-09-01 01:28:52 -07:00
|
|
|
}
|