depot/third_party/nixpkgs/pkgs/development/python-modules/bless/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

59 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 ];
};
}