nixpkgs/pkgs/development/python-modules/pyialarm/default.nix
adisbladis 02dab4ab5c python3.pkgs.*: Explicitly pass buildPythonPackage format parameter
Long term we should move everything over to `pyproject = true`, but in
the mean time we can work towards deprecating the implicit `format` paremeter.

cc https://github.com/NixOS/nixpkgs/issues/253154
cc @mweinelt @figsoda
2023-12-07 17:46:49 +01:00

41 lines
785 B
Nix

{ lib
, buildPythonPackage
, dicttoxml2
, fetchFromGitHub
, pythonOlder
, xmltodict
}:
buildPythonPackage rec {
pname = "pyialarm";
version = "2.2.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "RyuzakiKK";
repo = pname;
rev = "v${version}";
hash = "sha256-rOdeYewjoFVbHdNPHN6ZC2g6X5yr84/JFE6tGSDIoRU=";
};
propagatedBuildInputs = [
dicttoxml2
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 ];
};
}