depot/third_party/nixpkgs/pkgs/development/python-modules/bless/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

56 lines
1 KiB
Nix

{
lib,
aioconsole,
bleak,
buildPythonPackage,
dbus-next,
fetchFromGitHub,
numpy,
pytest-asyncio,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "bless";
version = "0.2.6";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "kevincar";
repo = "bless";
rev = "refs/tags/v${version}";
hash = "sha256-dAdA+d75iE6v6t4mfgvwhRsIARLW+IqCGmaMABaDlZg=";
};
postPatch = ''
sed -i "/pysetupdi/d" setup.py
'';
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
bleak
dbus-next
];
nativeCheckInputs = [
aioconsole
numpy
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [ "bless" ];
meta = with lib; {
description = "Library for creating a BLE Generic Attribute Profile (GATT) server";
homepage = "https://github.com/kevincar/bless";
changelog = "https://github.com/kevincar/bless/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}