depot/third_party/nixpkgs/pkgs/development/python-modules/sniffio/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

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";
};
}