From 60c8c1bd2da7f5580cdd50328690d237b8b951c8 Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Mon, 8 Jan 2018 09:46:40 -0600 Subject: [PATCH] pythonPackages.structlog: patch to fix tests, build --- pkgs/development/python-modules/structlog/default.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/structlog/default.nix b/pkgs/development/python-modules/structlog/default.nix index 2aab5b16aef..4dc9c3c79bc 100644 --- a/pkgs/development/python-modules/structlog/default.nix +++ b/pkgs/development/python-modules/structlog/default.nix @@ -1,6 +1,7 @@ { lib , buildPythonPackage , fetchPypi +, fetchpatch , pytest , pretend , freezegun @@ -16,6 +17,14 @@ buildPythonPackage rec { sha256 = "6980001045abd235fa12582222627c19b89109e58b85eb77d5a5abc778df6e20"; }; + patches = [ + # Fix tests for pytest 3.3 + (fetchpatch { + url = "https://github.com/hynek/structlog/commit/22f0ae50607a0cb024361599f84610ce290deb99.patch"; + sha256 = "03622i13ammkpyrdk48kimbz94gbkpcmdpy0kj2z09m1kp6q2ljv"; + }) + ]; + checkInputs = [ pytest pretend freezegun ]; propagatedBuildInputs = [ simplejson ]; @@ -29,4 +38,4 @@ buildPythonPackage rec { homepage = http://www.structlog.org/; license = lib.licenses.asl20; }; -} \ No newline at end of file +}