git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #120211 from fabaff/bump-brother
commit9abe4174c776625539ffa4c21477e7cf090bb587 authorMartin Weinelt <mweinelt@users.noreply.github.com> dateThu 22 Apr 2021, 17:17 (6 years ago) parenteab5c734d85aa1
2 files changed+16−2
pkgs/development/python-modules/brother/default.nix+2−2 pkgs/servers/home-assistant/default.nix+14
pkgs/development/python-modules/brother/default.nix+2−2
@@ -13,14 +13,14 @@
1313
1414buildPythonPackage rec {
1515 pname = "brother";
16− version = "0.2.2";
16+ version = "1.0.0";
1717 disabled = pythonOlder "3.8";
1818
1919 src = fetchFromGitHub {
2020 owner = "bieniu";
2121 repo = pname;
2222 rev = version;
23− sha256 = "sha256-vIefcL3K3ZbAUxMFM7gbbTFdrnmufWZHcq4OA19SYXE=";
23+ sha256 = "sha256-0NfqPlQiOkNhR+H55E9LE4dGa9R8vcSyPNbbIeiRJV8=";
2424 };
2525
2626 postPatch = ''
pkgs/servers/home-assistant/default.nix+14
@@ -27,6 +27,19 @@ let
2727 (mkOverride "astral" "1.10.1"
2828 "d2a67243c4503131c856cafb1b1276de52a86e5b8a1d507b7e08bee51cb67bf1")
2929
30+ # Pinned due to API changes in brother>=1.0, remove >= 2021.5
31+ (self: super: {
32+ brother = super.brother.overridePythonAttrs (oldAttrs: rec {
33+ version = "0.2.2";
34+ src = fetchFromGitHub {
35+ owner = "bieniu";
36+ repo = "brother";
37+ rev = version;
38+ sha256 = "sha256-vIefcL3K3ZbAUxMFM7gbbTFdrnmufWZHcq4OA19SYXE=";
39+ };
40+ });
41+ })
42+
3043 # Pinned due to API changes in iaqualink>=2.0, remove after
3144 # https://github.com/home-assistant/core/pull/48137 was merged
3245 (self: super: {
@@ -205,6 +218,7 @@ in with py.pkgs; buildPythonApplication rec {
205218 "axis"
206219 "bayesian"
207220 "binary_sensor"
221+ "brother"
208222 "caldav"
209223 "calendar"
210224 "camera"