python312Packages.awscrt: refactor

This commit is contained in:
Weijia Wang
2025-04-20 01:17:32 +02:00
parent 90060b3002
commit 707c48c1b3
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
@@ -1197,9 +1197,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 { };