2017-09-01 09:28:52 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi,
|
|
|
|
cssselect, cssutils, lxml, mock, nose, requests
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "premailer";
|
|
|
|
name = "${pname}-${version}";
|
2017-10-25 19:04:35 +01:00
|
|
|
version = "3.1.1";
|
2017-09-01 09:28:52 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Turns CSS blocks into style attributes ";
|
|
|
|
homepage = https://github.com/peterbe/premailer;
|
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
};
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2017-10-25 19:04:35 +01:00
|
|
|
sha256 = "fd07dadc47345f7d44a0587bd65a37c45886f19c44b3ec94904761e4b2d39124";
|
2017-09-01 09:28:52 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ mock nose ];
|
|
|
|
propagatedBuildInputs = [ cssselect cssutils lxml requests ];
|
|
|
|
}
|