Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.9 kB · 107 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108{ lib, stdenv, buildPythonPackage, fetchPypi, pythonOlder
# build, autoPatchelfHook
# runtime, libnl, openssl_1_1
# propagates, aenum, coloredlogs, construct, cryptography, dacite, ecdsa, rich, pyyaml, ipdb, deprecation, mobly, pygobject3}:
buildPythonPackage rec { pname = "home-assistant-chip-core"; version = "2023.12.0"; format = "wheel";
disabled = pythonOlder "3.7";
src = let system = { "aarch64-linux" = { name = "aarch64"; hash = "sha256-mWJ3/IKm/kcNztr7+Q9Rhjka9niGOshLvGShS3ugR6g="; }; "x86_64-linux" = { name = "x86_64"; hash = "sha256-wRJWgT+uycCwNKMgHaiACv1y+AvOLrPOpcm2I8hVAxk="; }; }.${stdenv.system} or (throw "Unsupported system"); in fetchPypi { pname = "home_assistant_chip_core"; inherit version format; dist = "cp37"; python = "cp37"; abi = "abi3"; platform = "manylinux_2_31_${system.name}"; hash = system.hash; };
nativeBuildInputs = [ autoPatchelfHook ];
buildInputs = [ libnl openssl_1_1 ];
propagatedBuildInputs = [ aenum coloredlogs construct cryptography dacite ecdsa rich pyyaml ipdb deprecation mobly pygobject3 ];
pythonNamespaces = [ "chip" "chip.clusters" ];
pythonImportsCheck = [ "chip" "chip.ble" "chip.configuration" "chip.discovery" "chip.exceptions" "chip.native" "chip.storage" ];
doCheck = false; # no tests
meta = with lib; { description = "Python-base APIs and tools for CHIP"; homepage = "https://github.com/home-assistant-libs/chip-wheels"; changelog = "https://github.com/home-assistant-libs/chip-wheels/releases/tag/${version}"; license = licenses.asl20; maintainers = teams.home-assistant.members; platforms = [ "aarch64-linux" "x86_64-linux" ]; sourceProvenance = with sourceTypes; [ binaryNativeCode ]; };}