587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
43 lines
706 B
Nix
43 lines
706 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";
|
|
};
|
|
}
|