diff --git a/pkgs/development/python-modules/pyiss/default.nix b/pkgs/development/python-modules/pyiss/default.nix new file mode 100644 index 000000000000..b41d8c5100ec --- /dev/null +++ b/pkgs/development/python-modules/pyiss/default.nix @@ -0,0 +1,45 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + requests, + voluptuous, + httmock, + unittestCheckHook, +}: + +buildPythonPackage rec { + pname = "pyiss"; + version = "1.0.1"; + pyproject = true; + + src = fetchFromGitHub { + owner = "HydrelioxGitHub"; + repo = "pyiss"; + tag = version; + hash = "sha256-bhxeu/06B6ba9RB9p++tRWN/Dp3KUel9DN166HryP1E="; + }; + + build-system = [ setuptools ]; + + dependencies = [ + requests + voluptuous + ]; + + nativeCheckInputs = [ + httmock + unittestCheckHook + ]; + + pythonImportsCheck = [ "pyiss" ]; + + meta = { + description = "Python library to access International Space Station location and data"; + homepage = "https://github.com/HydrelioxGitHub/pyiss"; + changelog = "https://github.com/HydrelioxGitHub/pyiss/releases/tag/${version}"; + license = lib.licenses.mit; + maintainers = [ lib.maintainers.jamiemagee ]; + }; +} diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index 4bae988ec8d0..2cd5d9ae89a1 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -2805,7 +2805,8 @@ ]; "iss" = ps: with ps; [ - ]; # missing inputs: pyiss + pyiss + ]; "ista_ecotrend" = ps: with ps; [ fnv-hash-fast @@ -7185,6 +7186,7 @@ "iskra" "islamic_prayer_times" "israel_rail" + "iss" "ista_ecotrend" "isy994" "ituran" diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 98a11e205415..ae5bd7e36a97 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -12904,6 +12904,8 @@ self: super: with self; { pyiskra = callPackage ../development/python-modules/pyiskra { }; + pyiss = callPackage ../development/python-modules/pyiss { }; + pyisy = callPackage ../development/python-modules/pyisy { }; pyituran = callPackage ../development/python-modules/pyituran { };