Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 636 B view raw
1{ buildPythonPackage 2, lib 3, fetchPypi 4, glibcLocales 5, isPy3k 6, pythonOlder 7, pytestCheckHook 8, curio 9}: 10 11buildPythonPackage rec { 12 pname = "sniffio"; 13 version = "1.3.0"; 14 format = "setuptools"; 15 16 src = fetchPypi { 17 inherit pname version; 18 hash = "sha256-5gMFxeXTFPU4klm38iqqM9j33uSXYxGSNK83VcVbkQE="; 19 }; 20 21 disabled = !isPy3k; 22 23 buildInputs = [ 24 glibcLocales 25 ]; 26 27 nativeCheckInputs = [ 28 curio 29 pytestCheckHook 30 ]; 31 32 meta = with lib; { 33 homepage = "https://github.com/python-trio/sniffio"; 34 license = licenses.asl20; 35 description = "Sniff out which async library your code is running under"; 36 }; 37}