about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/sniffio/default.nix
blob: b16cebd557d873d97ab3345153afa8b4a017bcb8 (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
31
32
33
34
35
36
37
{ 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";
  };
}