python312Packages.awscrt: refactor (#398933)

This commit is contained in:
OTABI Tomoya
2025-04-26 15:37:36 +09:00
committed by GitHub
2 changed files with 5 additions and 11 deletions
@@ -2,30 +2,26 @@
lib,
buildPythonPackage,
fetchPypi,
setuptools,
cmake,
perl,
stdenv,
CoreFoundation,
Security,
pythonOlder,
}:
buildPythonPackage rec {
pname = "awscrt";
version = "0.26.1";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.7";
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-qNY6fcxkhMXBZ1sxqNG2cmw9yFsTeW+xQ9+wByJgk14=";
};
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
CoreFoundation
Security
];
build-system = [ setuptools ];
nativeBuildInputs = [ cmake ] ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ perl ];
+1 -3
View File
@@ -1207,9 +1207,7 @@ self: super: with self; {
aws-xray-sdk = callPackage ../development/python-modules/aws-xray-sdk { };
awscrt = callPackage ../development/python-modules/awscrt {
inherit (pkgs.darwin.apple_sdk.frameworks) CoreFoundation Security;
};
awscrt = callPackage ../development/python-modules/awscrt { };
awsiotpythonsdk = callPackage ../development/python-modules/awsiotpythonsdk { };