anki-bin: 24.06.3 -> 24.11 (#360722)
[NixPkgs.git] / pkgs / development / python-modules / awscrt / default.nix
blobef55f5eebefcbd76711a0b8fe90d202cbb7569d5
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   cmake,
6   perl,
7   stdenv,
8   CoreFoundation,
9   Security,
10   pythonOlder,
13 buildPythonPackage rec {
14   pname = "awscrt";
15   version = "0.23.0";
16   format = "setuptools";
18   disabled = pythonOlder "3.7";
20   src = fetchPypi {
21     inherit pname version;
22     hash = "sha256-/fV2FX2CMt3jjpnJ4XjhfWVa1yWmWna7eYO/6npPxig=";
23   };
25   buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
26     CoreFoundation
27     Security
28   ];
30   nativeBuildInputs = [ cmake ] ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ perl ];
32   dontUseCmakeConfigure = true;
34   pythonImportsCheck = [ "awscrt" ];
36   # Unable to import test module
37   # https://github.com/awslabs/aws-crt-python/issues/281
38   doCheck = false;
40   meta = with lib; {
41     homepage = "https://github.com/awslabs/aws-crt-python";
42     changelog = "https://github.com/awslabs/aws-crt-python/releases/tag/v${version}";
43     description = "Python bindings for the AWS Common Runtime";
44     license = licenses.asl20;
45     maintainers = with maintainers; [ davegallant ];
46   };