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