1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 isPy27, 6 cssselect, 7 cssutils, 8 lxml, 9 mock, 10 nose, 11 requests, 12 cachetools, 13}: 14 15buildPythonPackage rec { 16 pname = "premailer"; 17 version = "3.10.0"; 18 format = "setuptools"; 19 disabled = isPy27; # no longer compatible with urllib 20 21 src = fetchPypi { 22 inherit pname version; 23 sha256 = "d1875a8411f5dc92b53ef9f193db6c0f879dc378d618e0ad292723e388bfe4c2"; 24 }; 25 26 buildInputs = [ 27 mock 28 nose 29 ]; 30 propagatedBuildInputs = [ 31 cachetools 32 cssselect 33 cssutils 34 lxml 35 requests 36 ]; 37 38 meta = { 39 description = "Turns CSS blocks into style attributes "; 40 homepage = "https://github.com/peterbe/premailer"; 41 license = lib.licenses.bsd3; 42 }; 43}