mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
49 lines
916 B
Nix
49 lines
916 B
Nix
{ lib
|
|
, aioconsole
|
|
, bleak
|
|
, buildPythonPackage
|
|
, dbus-next
|
|
, fetchFromGitHub
|
|
, numpy
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "bless";
|
|
version = "0.2.5";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kevincar";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-+rnMLqNfhIJASCKkIfOKpVil3S/d8BcMxnLHmdOcRIY=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
bleak
|
|
dbus-next
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
aioconsole
|
|
numpy
|
|
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 ];
|
|
};
|
|
}
|