Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 17.09 23 lines 577 B view raw
1{ lib, buildPythonPackage, fetchPypi, 2 cssselect, cssutils, lxml, mock, nose, requests 3}: 4 5buildPythonPackage rec { 6 pname = "premailer"; 7 name = "${pname}-${version}"; 8 version = "3.0.1"; 9 10 meta = { 11 description = "Turns CSS blocks into style attributes "; 12 homepage = https://github.com/peterbe/premailer; 13 license = lib.licenses.bsd3; 14 }; 15 16 src = fetchPypi { 17 inherit pname version; 18 sha256 = "0cmlvqx1dvy16k5q5ylmr43nlfpb9k2zl3q7s4kzhf0lml4wqwaf"; 19 }; 20 21 buildInputs = [ mock nose ]; 22 propagatedBuildInputs = [ cssselect cssutils lxml requests ]; 23}