Unverified Commit 60e1aafa authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

python312Packages.pymfy: refactor (#340505)

parents c2331cc7 4bc703a6
Loading
Loading
Loading
Loading
+9 −6
Original line number Diff line number Diff line
@@ -13,20 +13,22 @@
buildPythonPackage rec {
  pname = "pymfy";
  version = "0.11.0";
  format = "pyproject";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "tetienne";
    repo = "somfy-open-api";
    rev = "v${version}";
    sha256 = "0wpjwjmywfyqgwvfa5kwcjpaljc32qa088kk88nl9nqdvc31mzhv";
    rev = "refs/tags/v${version}";
    hash = "sha256-G/4aBtsN20QtQnMiBBQWg0mqrmR8FuU2f9g77qvk8nI=";
  };

  nativeBuildInputs = [ poetry-core ];
  pythonRelaxDeps = [ "requests-oauthlib" ];

  propagatedBuildInputs = [
  build-system = [ poetry-core ];

  dependencies = [
    requests
    requests-oauthlib
  ];
@@ -41,7 +43,8 @@ buildPythonPackage rec {
  meta = with lib; {
    description = "Python client for the Somfy Open API";
    homepage = "https://github.com/tetienne/somfy-open-api";
    license = with licenses; [ gpl3Only ];
    changelog = "https://github.com/tetienne/somfy-open-api/releases/tag/v${version}";
    license = licenses.gpl3Only;
    maintainers = with maintainers; [ fab ];
  };
}