Skip to content

Commit

Permalink
python311Packages.pyrisco: refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
fabaff committed Feb 14, 2024
1 parent f9d389e commit ba55780
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions pkgs/development/python-modules/pyrisco/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,27 @@
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, setuptools
}:

buildPythonPackage rec {
pname = "pyrisco";
version = "0.5.8";
format = "setuptools";
pyproject = true;

disabled = pythonOlder "3.7";

src = fetchFromGitHub {
owner = "OnFreund";
repo = pname;
rev = "v${version}";
repo = "pyrisco";
rev = "refs/tags/v${version}";
hash = "sha256-PQ1h9UVQ2DQMInxdAaLES7uDWAxwDra+YfAmz5jjV6g=";
};

nativeBuildInputs = [
setuptools
];

propagatedBuildInputs = [
aiohttp
];
Expand All @@ -32,6 +38,7 @@ buildPythonPackage rec {
meta = with lib; {
description = "Python interface to Risco alarm systems through Risco Cloud";
homepage = "https://github.com/OnFreund/pyrisco";
changelog = "https://github.com/OnFreund/pyrisco/releases/tag/v${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
Expand Down

0 comments on commit ba55780

Please sign in to comment.