Skip to content

Commit

Permalink
fix(frappe): premailer dep
Browse files Browse the repository at this point in the history
  • Loading branch information
blaggacao committed Jan 21, 2025
1 parent 705fa51 commit b678004
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/overlays/python/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ pyFinal: pyPrev: {
traceback-with-variables = pyFinal.callPackage ./traceback-with-variables {};
uuid-utils = pyFinal.callPackage ./uuid-utils.nix {};
sql_metadata = pyFinal.callPackage ./sql_metadata.nix {};
premailer = pyFinal.callPackage ./premailer.nix {}; # not anymore in nixpkgs, see: https://github.com/NixOS/nixpkgs/pull/348580

# erpnext dependencies
plaid-python = pyFinal.callPackage ./plaid-python.nix {}; # old version
Expand Down
42 changes: 42 additions & 0 deletions src/overlays/python/premailer.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
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;
};
}

0 comments on commit b678004

Please sign in to comment.