Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 92cfb8f4652e
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 57ba772b68af
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on May 12, 2020

  1. python27Packages.mail-parser: 3.9.3 -> 3.12.0

    r-ryantm authored and Jon committed May 12, 2020
    Copy the full SHA
    903f056 View commit details
  2. Copy the full SHA
    57ba772 View commit details
Showing with 7 additions and 3 deletions.
  1. +7 −3 pkgs/development/python-modules/mail-parser/default.nix
10 changes: 7 additions & 3 deletions pkgs/development/python-modules/mail-parser/default.nix
Original file line number Diff line number Diff line change
@@ -2,20 +2,24 @@

buildPythonPackage rec {
pname = "mail-parser";
version = "3.9.3";
version = "3.12.0";

# no tests in PyPI tarball
src = fetchFromGitHub {
owner = "SpamScope";
repo = pname;
rev = "v${version}";
sha256 = "0v6hgsz6yvp6csgx4y440ksqj24rdsd06vyfqcihiy3dfvp9229y";
sha256 = "0p851jlly6bzcs70kd1lcjwmg4scwh1icymfc0f2y6rkh4kfsdhk";
};

LC_ALL = "en_US.utf-8";

# remove version bounds
prePatch = ''
sed -i -e 's/==.*//g' requirements.txt
''
# ipaddress is part of the standard library of Python 3.3+
prePatch = lib.optionalString (!pythonOlder "3.3") ''
+ lib.optionalString (!pythonOlder "3.3") ''
substituteInPlace requirements.txt \
--replace "ipaddress" ""
'';