Merge pull request #33616 from dtzWill/fix/py-structlog-tests

pythonPackages.structlog: patch to fix tests, build
This commit is contained in:
Orivej Desh 2018-01-19 20:38:06 +00:00 committed by GitHub
commit df925d6b7b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
};
}
}