depot/third_party/nixpkgs/pkgs/development/python-modules/pyrisco/default.nix
Default email a66bca1520 Project import generated by Copybara.
GitOrigin-RevId: 40f79f003b6377bd2f4ed4027dde1f8f922995dd
2022-12-17 11:02:37 +01:00

37 lines
720 B
Nix

{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
}:
buildPythonPackage rec {
pname = "pyrisco";
version = "0.5.7";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "OnFreund";
repo = pname;
rev = "v${version}";
hash = "sha256-ySFHB+PZmjsqKJQrfFoupylowsOiV5B2feHX7nF8dUA=";
};
propagatedBuildInputs = [
aiohttp
];
# Project has no tests
doCheck = false;
pythonImportsCheck = [
"pyrisco"
];
meta = with lib; {
description = "Python interface to Risco alarm systems through Risco Cloud";
homepage = "https://github.com/OnFreund/pyrisco";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}