diff --git a/pkgs/development/python-modules/pyialarmxr/default.nix b/pkgs/development/python-modules/pyialarmxr-homeassistant/default.nix similarity index 66% rename from pkgs/development/python-modules/pyialarmxr/default.nix rename to pkgs/development/python-modules/pyialarmxr-homeassistant/default.nix index 0110411a193d..fea638f7a5f8 100644 --- a/pkgs/development/python-modules/pyialarmxr/default.nix +++ b/pkgs/development/python-modules/pyialarmxr-homeassistant/default.nix @@ -1,24 +1,23 @@ { lib , buildPythonPackage -, fetchFromGitHub +, fetchPypi , lxml , pythonOlder , xmltodict }: buildPythonPackage rec { - pname = "pyialarmxr"; + pname = "pyialarmxr-homeassistant"; version = "1.0.18"; format = "setuptools"; disabled = pythonOlder "3.7"; - src = fetchFromGitHub { - owner = "bigmoby"; - repo = pname; - rev = version; - hash = "sha256-Q1NsPLA1W4nxSG/9jlMf6BkC3ZrUrhl8oDX7U4aAjxM="; + src = fetchPypi { + inherit pname version; + hash = "sha256-aQHJiSmaGyABHP17oFH+6JQ9zNJ6pj2+PcE+gsRuhaQ="; }; + propagatedBuildInputs = [ lxml xmltodict @@ -33,7 +32,7 @@ buildPythonPackage rec { meta = with lib; { description = "Library to interface with Antifurto365 iAlarmXR systems"; - homepage = "https://github.com/bigmoby/pyialarmxr"; + homepage = "https://pypi.org/project/pyialarmxr-homeassistant/"; license = licenses.mit; maintainers = with maintainers; [ fab ]; }; diff --git a/pkgs/top-level/python-aliases.nix b/pkgs/top-level/python-aliases.nix index 0e58d7b976c4..c84d0739d31f 100644 --- a/pkgs/top-level/python-aliases.nix +++ b/pkgs/top-level/python-aliases.nix @@ -111,6 +111,7 @@ mapAliases ({ pydrive = throw "pydrive is broken and deprecated and has been replaced with pydrive2."; # added 2022-06-01 pyGtkGlade = throw "Glade support for pygtk has been removed"; # added 2022-01-15 pycallgraph = throw "pycallgraph has been removed, it was using setuptools 2to3 translation feature, which has been removed in setuptools 58"; # added 2022-01-18 + pyialarmxr = pyialarmxr-homeassistant; # added 2022-06-07 pylibgen = throw "pylibgen is unmaintained upstreamed, and removed from nixpkgs"; # added 2020-06-20 pymc3 = pymc; # added 2022-06-05, module was rename starting with 4.0.0 pymssql = throw "pymssql has been abandoned upstream."; # added 2020-05-04 diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 23bc0d21ff78..2e553cf8addf 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7448,7 +7448,7 @@ in { pyialarm = callPackage ../development/python-modules/pyialarm { }; - pyialarmxr = callPackage ../development/python-modules/pyialarmxr { }; + pyialarmxr-homeassistant = callPackage ../development/python-modules/pyialarmxr-homeassistant { }; pyicloud = callPackage ../development/python-modules/pyicloud { };