Merge pull request #110453 from fabaff/bsblan

Sandro 2b56a693 b60a6af8

Changed files
+93 -1
pkgs
development
python-modules
bsblan
cattrs
servers
home-assistant
top-level
+53
pkgs/development/python-modules/bsblan/default.nix
···
···
+
{ lib
+
, buildPythonPackage
+
, fetchFromGitHub
+
, pytestCheckHook
+
, aresponses
+
, coverage
+
, mypy
+
, pytest-asyncio
+
, pytest-cov
+
, pytest-mock
+
, aiohttp
+
, attrs
+
, cattrs
+
, yarl
+
}:
+
+
buildPythonPackage rec {
+
pname = "bsblan";
+
version = "0.4.1";
+
+
src = fetchFromGitHub {
+
owner = "liudger";
+
repo = "python-bsblan";
+
rev = "v.${version}";
+
sha256 = "0vyg9vsrs34jahlav83qp2djv81p3ks31qz4qh46zdij2nx7l1fv";
+
};
+
+
propagatedBuildInputs = [
+
aiohttp
+
attrs
+
cattrs
+
yarl
+
];
+
+
checkInputs = [
+
aresponses
+
coverage
+
mypy
+
pytest-asyncio
+
pytest-cov
+
pytest-mock
+
pytestCheckHook
+
];
+
+
pythonImportsCheck = [ "bsblan" ];
+
+
meta = with lib; {
+
description = "Python client for BSB-Lan";
+
homepage = "https://github.com/liudger/python-bsblan";
+
license = with licenses; [ mit ];
+
maintainers = with maintainers; [ fab ];
+
};
+
}
+35
pkgs/development/python-modules/cattrs/default.nix
···
···
+
{ lib
+
, attrs
+
, buildPythonPackage
+
, fetchFromGitHub
+
, hypothesis
+
, pytestCheckHook
+
}:
+
+
buildPythonPackage rec {
+
pname = "cattrs";
+
version = "1.1.2";
+
+
src = fetchFromGitHub {
+
owner = "Tinche";
+
repo = pname;
+
rev = "v${version}";
+
sha256 = "083d5mi6x7qcl26wlvwwn7gsp5chxlxkh4rp3a41w8cfwwr3h6l8";
+
};
+
+
propagatedBuildInputs = [ attrs ];
+
+
checkInputs = [
+
hypothesis
+
pytestCheckHook
+
];
+
+
pythonImportsCheck = [ "cattr" ];
+
+
meta = with lib; {
+
description = "Python custom class converters for attrs";
+
homepage = "https://github.com/Tinche/cattrs";
+
license = with licenses; [ mit ];
+
maintainers = with maintainers; [ fab ];
+
};
+
}
+1 -1
pkgs/servers/home-assistant/component-packages.nix
···
"brottsplatskartan" = ps: with ps; [ ]; # missing inputs: brottsplatskartan
"browser" = ps: with ps; [ ];
"brunt" = ps: with ps; [ ]; # missing inputs: brunt
-
"bsblan" = ps: with ps; [ ]; # missing inputs: bsblan
"bt_home_hub_5" = ps: with ps; [ ]; # missing inputs: bthomehub5-devicelist
"bt_smarthub" = ps: with ps; [ ]; # missing inputs: btsmarthub_devicelist
"buienradar" = ps: with ps; [ ]; # missing inputs: buienradar
···
"brottsplatskartan" = ps: with ps; [ ]; # missing inputs: brottsplatskartan
"browser" = ps: with ps; [ ];
"brunt" = ps: with ps; [ ]; # missing inputs: brunt
+
"bsblan" = ps: with ps; [ bsblan ];
"bt_home_hub_5" = ps: with ps; [ ]; # missing inputs: bthomehub5-devicelist
"bt_smarthub" = ps: with ps; [ ]; # missing inputs: btsmarthub_devicelist
"buienradar" = ps: with ps; [ ]; # missing inputs: buienradar
+4
pkgs/top-level/python-packages.nix
···
bsdiff4 = callPackage ../development/python-modules/bsdiff4 { };
btchip = callPackage ../development/python-modules/btchip { };
bt_proximity = callPackage ../development/python-modules/bt-proximity { };
···
catalogue = callPackage ../development/python-modules/catalogue { };
catboost = callPackage ../development/python-modules/catboost { };
cbeams = callPackage ../misc/cbeams { };
···
bsdiff4 = callPackage ../development/python-modules/bsdiff4 { };
+
bsblan = callPackage ../development/python-modules/bsblan { };
+
btchip = callPackage ../development/python-modules/btchip { };
bt_proximity = callPackage ../development/python-modules/bt-proximity { };
···
catalogue = callPackage ../development/python-modules/catalogue { };
catboost = callPackage ../development/python-modules/catboost { };
+
+
cattrs = callPackage ../development/python-modules/cattrs { };
cbeams = callPackage ../misc/cbeams { };