Files
nixpkgs/pkgs/development/python-modules/frigidaire/default.nix
T
2025-11-05 21:15:35 +01:00

53 lines
1017 B
Nix

{
lib,
buildPythonPackage,
certifi,
chardet,
fetchFromGitHub,
idna,
requests,
setuptools,
urllib3,
}:
buildPythonPackage rec {
pname = "frigidaire";
version = "0.18.28";
pyproject = true;
src = fetchFromGitHub {
owner = "bm1549";
repo = "frigidaire";
tag = version;
hash = "sha256-2VleZyisva2HQPDmPoZbxnYu3t1S/HTuaZtFWFiU1nU=";
};
postPatch = ''
substituteInPlace setup.py \
--replace-warn 'version = "SNAPSHOT"' 'version = "${version}"'
'';
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
certifi
chardet
idna
requests
urllib3
];
# Project has no tests
doCheck = false;
pythonImportsCheck = [ "frigidaire" ];
meta = with lib; {
description = "Python API for the Frigidaire devices";
homepage = "https://github.com/bm1549/frigidaire";
changelog = "https://github.com/bm1549/frigidaire/releases/tag/${src.tag}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}