Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at master 972 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 setuptools, 6 cmake, 7 perl, 8 stdenv, 9 pythonOlder, 10}: 11 12buildPythonPackage rec { 13 pname = "awscrt"; 14 version = "0.27.6"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.8"; 18 19 src = fetchPypi { 20 inherit pname version; 21 hash = "sha256-RfPdCz+xPfvqhW3ZbJrP53vrpXubAZRE7pYu0rdidt0="; 22 }; 23 24 build-system = [ setuptools ]; 25 26 nativeBuildInputs = [ cmake ] ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ perl ]; 27 28 dontUseCmakeConfigure = true; 29 30 pythonImportsCheck = [ "awscrt" ]; 31 32 # Unable to import test module 33 # https://github.com/awslabs/aws-crt-python/issues/281 34 doCheck = false; 35 36 meta = with lib; { 37 homepage = "https://github.com/awslabs/aws-crt-python"; 38 changelog = "https://github.com/awslabs/aws-crt-python/releases/tag/v${version}"; 39 description = "Python bindings for the AWS Common Runtime"; 40 license = licenses.asl20; 41 maintainers = with maintainers; [ davegallant ]; 42 }; 43}