2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
isPy27,
|
|
|
|
cssselect,
|
|
|
|
cssutils,
|
|
|
|
lxml,
|
|
|
|
mock,
|
|
|
|
nose,
|
|
|
|
requests,
|
|
|
|
cachetools,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "premailer";
|
2021-08-27 14:25:00 +00:00
|
|
|
version = "3.10.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-11-19 00:13:47 +00:00
|
|
|
disabled = isPy27; # no longer compatible with urllib
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-08-27 14:25:00 +00:00
|
|
|
sha256 = "d1875a8411f5dc92b53ef9f193db6c0f879dc378d618e0ad292723e388bfe4c2";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
buildInputs = [
|
|
|
|
mock
|
|
|
|
nose
|
|
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
cachetools
|
|
|
|
cssselect
|
|
|
|
cssutils
|
|
|
|
lxml
|
|
|
|
requests
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Turns CSS blocks into style attributes ";
|
|
|
|
homepage = "https://github.com/peterbe/premailer";
|
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|