nixpkgs/pkgs/development/python-modules/pyialarm/default.nix
2021-05-29 16:17:36 -07:00

38 lines
752 B
Nix

{ lib
, buildPythonPackage
, dicttoxml
, fetchFromGitHub
, pythonOlder
, xmltodict
}:
buildPythonPackage rec {
pname = "pyialarm";
version = "1.7";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "RyuzakiKK";
repo = pname;
rev = "v${version}";
sha256 = "sha256-Gk5kWOqsPyq/0Vc+jdRRyj+ko3CpmqQ6/McvJYAGjLY=";
};
propagatedBuildInputs = [
dicttoxml
xmltodict
];
# Project has no tests
doCheck = false;
pythonImportsCheck = [ "pyialarm" ];
meta = with lib; {
description = "Python library to interface with Antifurto365 iAlarm systems";
homepage = "https://github.com/RyuzakiKK/pyialarm";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}