pythonPackages.structlog: patch to fix tests, build

This commit is contained in:
Will Dietz 2018-01-08 09:46:40 -06:00
parent d0cfab8346
commit 60c8c1bd2d

View File

@ -1,6 +1,7 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchPypi , fetchPypi
, fetchpatch
, pytest , pytest
, pretend , pretend
, freezegun , freezegun
@ -16,6 +17,14 @@ buildPythonPackage rec {
sha256 = "6980001045abd235fa12582222627c19b89109e58b85eb77d5a5abc778df6e20"; 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 ]; checkInputs = [ pytest pretend freezegun ];
propagatedBuildInputs = [ simplejson ]; propagatedBuildInputs = [ simplejson ];