python3Packages.sniffio: Use pytestCheckHook

and set format. Reformat.
This commit is contained in:
Martin Weinelt 2022-11-29 01:18:18 +01:00
parent df500fa527
commit 19e6e26e8a

View file

@ -1,25 +1,33 @@
{ buildPythonPackage, lib, fetchPypi, glibcLocales, isPy3k
, pythonOlder, pytest, curio
{ buildPythonPackage
, lib
, fetchPypi
, glibcLocales
, isPy3k
, pythonOlder
, pytestCheckHook
, curio
}:
buildPythonPackage rec {
pname = "sniffio";
version = "1.3.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-5gMFxeXTFPU4klm38iqqM9j33uSXYxGSNK83VcVbkQE=";
hash = "sha256-5gMFxeXTFPU4klm38iqqM9j33uSXYxGSNK83VcVbkQE=";
};
disabled = !isPy3k;
buildInputs = [ glibcLocales ];
buildInputs = [
glibcLocales
];
checkInputs = [ pytest curio ];
checkPhase = ''
pytest
'';
checkInputs = [
curio
pytestCheckHook
];
meta = with lib; {
homepage = "https://github.com/python-trio/sniffio";