pythonPackages.structlog: 17.2.0 -> 18.2.0
This commit is contained in:
parent
e3bf962bb8
commit
5aed95f8b4
@ -3,34 +3,30 @@
|
||||
, fetchPypi
|
||||
, fetchpatch
|
||||
, pytest
|
||||
, python-rapidjson
|
||||
, pretend
|
||||
, freezegun
|
||||
, twisted
|
||||
, simplejson
|
||||
, six
|
||||
, pythonAtLeast
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "structlog";
|
||||
version = "17.2.0";
|
||||
version = "18.2.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "6980001045abd235fa12582222627c19b89109e58b85eb77d5a5abc778df6e20";
|
||||
sha256 = "e361edb3b9aeaa85cd38a1bc9ddbb60cda8a991fc29de9db26832f6300e81eb4";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Fix tests for pytest 3.3
|
||||
(fetchpatch {
|
||||
url = "https://github.com/hynek/structlog/commit/22f0ae50607a0cb024361599f84610ce290deb99.patch";
|
||||
sha256 = "03622i13ammkpyrdk48kimbz94gbkpcmdpy0kj2z09m1kp6q2ljv";
|
||||
})
|
||||
];
|
||||
|
||||
checkInputs = [ pytest pretend freezegun simplejson ];
|
||||
checkInputs = [ pytest pretend freezegun simplejson twisted ]
|
||||
++ lib.optionals (pythonAtLeast "3.6") [ python-rapidjson ];
|
||||
propagatedBuildInputs = [ six ];
|
||||
|
||||
checkPhase = ''
|
||||
rm tests/test_twisted.py*
|
||||
# rm tests/test_twisted.py*
|
||||
py.test
|
||||
'';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user