blob: 1b904a24ea14e2183ef48dc37d9ef5fff31aeff9 (
plain)
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
38
39
40
41
42
|
{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
cmake,
perl,
stdenv,
}:
buildPythonPackage (finalAttrs: {
pname = "awscrt";
version = "0.31.1";
pyproject = true;
src = fetchPypi {
inherit (finalAttrs) pname version;
hash = "sha256-q7ZHaNJb9WPajiFl1Hekkcuhi8IsTsjbesva6U5Z68Q=";
};
build-system = [ setuptools ];
nativeBuildInputs = [ cmake ] ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ perl ];
hardeningDisable = [ "fortify" ]; # needed for jitterentropy
dontUseCmakeConfigure = true;
pythonImportsCheck = [ "awscrt" ];
# Unable to import test module
# https://github.com/awslabs/aws-crt-python/issues/281
doCheck = false;
meta = {
homepage = "https://github.com/awslabs/aws-crt-python";
changelog = "https://github.com/awslabs/aws-crt-python/releases/tag/v${finalAttrs.version}";
description = "Python bindings for the AWS Common Runtime";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ davegallant ];
};
})
|