From 038ab72940d4eac766e3fb1cb1e06ee9322c8a89 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 22 Jan 2021 09:33:10 +0100 Subject: [PATCH 1/3] python3Packages.cattrs: init at 1.1.2 --- .../python-modules/cattrs/default.nix | 35 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 37 insertions(+) create mode 100644 pkgs/development/python-modules/cattrs/default.nix diff --git a/pkgs/development/python-modules/cattrs/default.nix b/pkgs/development/python-modules/cattrs/default.nix new file mode 100644 index 000000000000..a48e29b827b7 --- /dev/null +++ b/pkgs/development/python-modules/cattrs/default.nix @@ -0,0 +1,35 @@ +{ 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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 5744c8db921a..3edbe5de92d3 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1161,6 +1161,8 @@ in { catboost = callPackage ../development/python-modules/catboost { }; + cattrs = callPackage ../development/python-modules/cattrs { }; + cbeams = callPackage ../misc/cbeams { }; cbor2 = callPackage ../development/python-modules/cbor2 { }; From 7581c226160b0274278e055ed08bca8f01d4c517 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 22 Jan 2021 09:41:59 +0100 Subject: [PATCH 2/3] python3Packages.bsblan: init at 0.4.1 --- .../python-modules/bsblan/default.nix | 53 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 55 insertions(+) create mode 100644 pkgs/development/python-modules/bsblan/default.nix diff --git a/pkgs/development/python-modules/bsblan/default.nix b/pkgs/development/python-modules/bsblan/default.nix new file mode 100644 index 000000000000..f670bebc8ed3 --- /dev/null +++ b/pkgs/development/python-modules/bsblan/default.nix @@ -0,0 +1,53 @@ +{ 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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 3edbe5de92d3..f8749a78ff15 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1046,6 +1046,8 @@ in { 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 { }; From 819ce289febdd02e15010ec4475db01a0a9ee061 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 22 Jan 2021 09:43:05 +0100 Subject: [PATCH 3/3] home-assistant: update component-packages --- pkgs/servers/home-assistant/component-packages.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index b3d2247cb356..cfbe0f489d38 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -99,7 +99,7 @@ "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 + "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