depot/third_party/nixpkgs/pkgs/development/python-modules/pythonegardia/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

37 lines
925 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
requests,
pythonOlder,
}:
buildPythonPackage rec {
pname = "pythonegardia";
version = "1.0.52";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "jeroenterheerdt";
repo = "python-egardia";
rev = "refs/tags/v${version}";
sha256 = "sha256-lQ/7tH74MllwFe2kF5OcYSb4rQd+yJU1W6ztG4Z6Y0U=";
};
propagatedBuildInputs = [ requests ];
# Project has no tests, only two test file for manual interaction
doCheck = false;
pythonImportsCheck = [ "pythonegardia" ];
meta = with lib; {
description = "Python interface with Egardia/Woonveilig alarms";
homepage = "https://github.com/jeroenterheerdt/python-egardia";
changelog = "https://github.com/jeroenterheerdt/python-egardia/releases/tag/v${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}