@@ -1,26 +1,27 @@
11{ buildPythonPackage, lib, fetchPypi, glibcLocales, isPy3k, contextvars
2−, pythonOlder
2+, pythonOlder, pytest, curio
33}:
44
55buildPythonPackage rec {
66 pname = "sniffio";
7− version = "1.0.0";
7+ version = "1.1.0";
88
99 src = fetchPypi {
1010 inherit pname version;
11− sha256 = "1dzb0nx3m1hpjgsv6s6w5ac2jcmywcz6gqnfkw8rwz1vkr1836rf";
11+ sha256 = "8e3810100f69fe0edd463d02ad407112542a11ffdc29f67db2bf3771afb87a21";
1212 };
1313
14− # breaks with the following error:
15− # > TypeError: 'encoding' is an invalid keyword argument for this function
1614 disabled = !isPy3k;
1715
1816 buildInputs = [ glibcLocales ];
1917
2018 propagatedBuildInputs = lib.optionals (pythonOlder "3.7") [ contextvars ];
2119
22− # no tests distributed with PyPI
23− doCheck = false;
20+ checkInputs = [ pytest curio ];
21+
22+ checkPhase = ''
23+ pytest
24+ '';
2425
2526 meta = with lib; {
2627 homepage = https://github.com/python-trio/sniffio;