fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
43 lines
725 B
Nix
43 lines
725 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
isPy27,
|
|
cssselect,
|
|
cssutils,
|
|
lxml,
|
|
mock,
|
|
nose,
|
|
requests,
|
|
cachetools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "premailer";
|
|
version = "3.10.0";
|
|
format = "setuptools";
|
|
disabled = isPy27; # no longer compatible with urllib
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "d1875a8411f5dc92b53ef9f193db6c0f879dc378d618e0ad292723e388bfe4c2";
|
|
};
|
|
|
|
buildInputs = [
|
|
mock
|
|
nose
|
|
];
|
|
propagatedBuildInputs = [
|
|
cachetools
|
|
cssselect
|
|
cssutils
|
|
lxml
|
|
requests
|
|
];
|
|
|
|
meta = {
|
|
description = "Turns CSS blocks into style attributes ";
|
|
homepage = "https://github.com/peterbe/premailer";
|
|
license = lib.licenses.bsd3;
|
|
};
|
|
}
|