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