python312Packages.beacontools: init at 2.1.0

Changed files
+55
pkgs
development
python-modules
beacontools
top-level
+53
pkgs/development/python-modules/beacontools/default.nix
···
+
{
+
ahocorapy,
+
buildPythonPackage,
+
construct,
+
fetchFromGitHub,
+
lib,
+
pybluez,
+
pytestCheckHook,
+
setuptools,
+
stdenv,
+
}:
+
+
buildPythonPackage rec {
+
pname = "beacontools";
+
version = "2.1.0";
+
pyproject = true;
+
+
src = fetchFromGitHub {
+
owner = "citruz";
+
repo = "beacontools";
+
tag = "v${version}";
+
hash = "sha256-3a/HDssOqIfReSijRvmiXwuZjvWLJfDaDyUdA2vv/jA=";
+
};
+
+
build-system = [ setuptools ];
+
+
pythonRelaxDeps = [
+
"ahocorapy"
+
];
+
+
dependencies = [
+
ahocorapy
+
construct
+
];
+
+
optional-dependencies = {
+
scan = lib.optionals stdenv.hostPlatform.isLinux [ pybluez ];
+
};
+
+
pythonImportsCheck = [ "beacontools" ];
+
+
nativeCheckInputs = [
+
pytestCheckHook
+
];
+
+
meta = {
+
changelog = "https://github.com/citruz/beacontools/releases/tag/${src.tag}";
+
description = "Python library for working with various types of Bluetooth LE Beacons";
+
homepage = "https://github.com/citruz/beacontools";
+
license = lib.licenses.mit;
+
maintainers = with lib.maintainers; [ dotlambda ];
+
};
+
}
+2
pkgs/top-level/python-packages.nix
···
bdffont = callPackage ../development/python-modules/bdffont { };
+
beacontools = callPackage ../development/python-modules/beacontools { };
+
beaker = callPackage ../development/python-modules/beaker { };
before-after = callPackage ../development/python-modules/before-after { };