From 4b4e05c6ec4f4589a98bb0523ad78a4cdcd89268 Mon Sep 17 00:00:00 2001 From: betaboon Date: Fri, 1 Sep 2017 10:28:52 +0200 Subject: [PATCH] pythonPackages.premailer: init at 3.0.1 --- .../python-modules/premailer/default.nix | 23 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 25 insertions(+) create mode 100644 pkgs/development/python-modules/premailer/default.nix diff --git a/pkgs/development/python-modules/premailer/default.nix b/pkgs/development/python-modules/premailer/default.nix new file mode 100644 index 000000000000..f2f8c0f89fd6 --- /dev/null +++ b/pkgs/development/python-modules/premailer/default.nix @@ -0,0 +1,23 @@ +{ lib, buildPythonPackage, fetchPypi, + cssselect, cssutils, lxml, mock, nose, requests +}: + +buildPythonPackage rec { + pname = "premailer"; + name = "${pname}-${version}"; + version = "3.0.1"; + + meta = { + description = "Turns CSS blocks into style attributes "; + homepage = https://github.com/peterbe/premailer; + license = lib.licenses.bsd3; + }; + + src = fetchPypi { + inherit pname version; + sha256 = "0cmlvqx1dvy16k5q5ylmr43nlfpb9k2zl3q7s4kzhf0lml4wqwaf"; + }; + + buildInputs = [ mock nose ]; + propagatedBuildInputs = [ cssselect cssutils lxml requests ]; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 301100bd29aa..b1d3b2a01863 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -16436,6 +16436,8 @@ in { }; }; + premailer = callPackage ../development/python-modules/premailer { }; + prettytable = buildPythonPackage rec { name = "prettytable-0.7.1";