nixpkgs/pkgs/development/python-modules/sniffio/default.nix
Martin Weinelt 19e6e26e8a python3Packages.sniffio: Use pytestCheckHook
and set format. Reformat.
2022-11-29 01:34:59 +01:00

38 lines
630 B
Nix

{ buildPythonPackage
, lib
, fetchPypi
, glibcLocales
, isPy3k
, pythonOlder
, pytestCheckHook
, curio
}:
buildPythonPackage rec {
pname = "sniffio";
version = "1.3.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-5gMFxeXTFPU4klm38iqqM9j33uSXYxGSNK83VcVbkQE=";
};
disabled = !isPy3k;
buildInputs = [
glibcLocales
];
checkInputs = [
curio
pytestCheckHook
];
meta = with lib; {
homepage = "https://github.com/python-trio/sniffio";
license = licenses.asl20;
description = "Sniff out which async library your code is running under";
};
}