Commit 934e9a7a authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python311Packages.pyfronius: 0.7.1 -> 0.7.2

parent 1124eb9e
Loading
Loading
Loading
Loading
+8 −13
Original line number Diff line number Diff line
@@ -2,32 +2,24 @@
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, pythonOlder
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "pyfronius";
  version = "0.7.1";
  version = "0.7.2";
  format = "setuptools";

  disabled = pythonOlder "3.6";
  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "nielstron";
    repo = pname;
    rev = "release-${version}";
    sha256 = "1xwx0c1dp2374bwigzwhvcj4577vrxyhn6i5zv73k9ydc7w1xgyz";
    hash = "sha256-eWe4nXKW9oP9lqehy6BK7ABaIqP3dgRX6ymW1Okfd9g=";
  };

  patches = [
    (fetchpatch {
      # Python3.10 compatibility; https://github.com/nielstron/pyfronius/pull/7
      url = "https://github.com/nielstron/pyfronius/commit/9deb209d4246ff575cd3c4c5373037bf11df6719.patch";
      hash = "sha256-srXYCvp86kGYUYZIXMcu68hEbkTspD945J+hc/AhqSw=";
    })
  ];

  propagatedBuildInputs = [
    aiohttp
  ];
@@ -36,11 +28,14 @@ buildPythonPackage rec {
    pytestCheckHook
  ];

  pythonImportsCheck = [ "pyfronius" ];
  pythonImportsCheck = [
    "pyfronius"
  ];

  meta = with lib; {
    description = "Python module to communicate with Fronius Symo";
    homepage = "https://github.com/nielstron/pyfronius";
    changelog = "https://github.com/nielstron/pyfronius/releases/tag/release-${version}";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ fab ];
  };