depot/third_party/nixpkgs/pkgs/development/python-modules/sniffio/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

42 lines
711 B
Nix

{
buildPythonPackage,
lib,
fetchPypi,
setuptools,
setuptools-scm,
glibcLocales,
isPy3k,
pytestCheckHook,
curio,
}:
buildPythonPackage rec {
pname = "sniffio";
version = "1.3.1";
pyproject = true;
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
hash = "sha256-9DJO3GcKD0l1CoG4lfNcOtuEPMpG8FMPefwbq7I3idw=";
};
build-system = [
setuptools
setuptools-scm
];
buildInputs = [ glibcLocales ];
nativeCheckInputs = [
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";
};
}