nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 47 lines 1.1 kB view raw
1{ 2 lib, 3 bleak-retry-connector, 4 bleak, 5 buildPythonPackage, 6 fetchFromGitHub, 7 setuptools, 8}: 9 10buildPythonPackage rec { 11 pname = "py-improv-ble-client"; 12 version = "2.0.1"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "home-assistant-libs"; 17 repo = "py-improv-ble-client"; 18 tag = version; 19 hash = "sha256-PkAZhKgj+xQtOOCccBXbR2QkwlkYavJe1pfU9nMhuVs="; 20 }; 21 22 postPatch = '' 23 substituteInPlace pyproject.toml \ 24 --replace-fail "setuptools>=65.6,<81.0" "setuptools" \ 25 --replace-fail "wheel>=0.37.1,<0.46.0" "wheel" 26 ''; 27 28 build-system = [ setuptools ]; 29 30 dependencies = [ 31 bleak 32 bleak-retry-connector 33 ]; 34 35 # Module has no tests 36 doCheck = false; 37 38 pythonImportsCheck = [ "improv_ble_client" ]; 39 40 meta = { 41 description = "Module to provision devices which implement Improv via BLE"; 42 homepage = "https://github.com/home-assistant-libs/py-improv-ble-client"; 43 changelog = "https://github.com/home-assistant-libs/py-improv-ble-client/releases/tag/${src.tag}"; 44 license = lib.licenses.mit; 45 maintainers = with lib.maintainers; [ fab ]; 46 }; 47}