98eb3e9ef5
GitOrigin-RevId: 00d80d13810dbfea8ab4ed1009b09100cca86ba8
55 lines
1.1 KiB
Nix
55 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
certifi,
|
|
chardet,
|
|
fetchFromGitHub,
|
|
idna,
|
|
pythonOlder,
|
|
requests,
|
|
setuptools,
|
|
urllib3,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "frigidaire";
|
|
version = "0.18.21";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bm1549";
|
|
repo = "frigidaire";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-7fpVFKhLXBD0ec2mGfbFHygaH8BtOIOd5NoYz03IKp8=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|