depot/third_party/nixpkgs/pkgs/development/python-modules/frigidaire/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

55 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
certifi,
chardet,
fetchFromGitHub,
idna,
pythonOlder,
requests,
setuptools,
urllib3,
}:
buildPythonPackage rec {
pname = "frigidaire";
version = "0.18.19";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "bm1549";
repo = "frigidaire";
rev = "refs/tags/${version}";
hash = "sha256-wbYijFiMk+EIAjD6+mKt/c6JwN9oQLfeL1Pk30RbKKs=";
};
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/${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}