blob: 9893bc5828a0b64f825cf67956c6723f8f3ecba2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
{ buildPythonPackage, lib, fetchPypi, glibcLocales, isPy3k, contextvars
, pythonOlder
}:
buildPythonPackage rec {
pname = "sniffio";
version = "1.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "1dzb0nx3m1hpjgsv6s6w5ac2jcmywcz6gqnfkw8rwz1vkr1836rf";
};
# breaks with the following error:
# > TypeError: 'encoding' is an invalid keyword argument for this function
disabled = !isPy3k;
buildInputs = [ glibcLocales ];
propagatedBuildInputs = lib.optionals (pythonOlder "3.7") [ contextvars ];
# no tests distributed with PyPI
doCheck = false;
meta = with lib; {
homepage = https://github.com/python-trio/sniffio;
license = licenses.asl20;
description = "Sniff out which async library your code is running under";
};
}
|