mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 06:03:40 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
38 lines
636 B
Nix
38 lines
636 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
|
|
];
|
|
|
|
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";
|
|
};
|
|
}
|