nixpkgs-suyu/pkgs/development/python-modules/premailer/default.nix

24 lines
646 B
Nix
Raw Normal View History

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