fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
42 lines
711 B
Nix
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";
|
|
};
|
|
}
|