mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-10 23:33:47 +00:00
Diff: https://github.com/bm1549/frigidaire/compare/0.18.45...0.18.46 Changelog: https://github.com/bm1549/frigidaire/releases/tag/0.18.46
53 lines
1.0 KiB
Nix
53 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
certifi,
|
|
chardet,
|
|
fetchFromGitHub,
|
|
idna,
|
|
requests,
|
|
setuptools,
|
|
urllib3,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "frigidaire";
|
|
version = "0.18.46";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bm1549";
|
|
repo = "frigidaire";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-UyzVeJ+D9gFyru1DjwCoVTQQK26jP4rxFfiTpBdo36g=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace-warn 'version = "SNAPSHOT"' 'version = "${finalAttrs.version}"'
|
|
'';
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
propagatedBuildInputs = [
|
|
certifi
|
|
chardet
|
|
idna
|
|
requests
|
|
urllib3
|
|
];
|
|
|
|
# Project has no tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "frigidaire" ];
|
|
|
|
meta = {
|
|
description = "Python API for the Frigidaire devices";
|
|
homepage = "https://github.com/bm1549/frigidaire";
|
|
changelog = "https://github.com/bm1549/frigidaire/releases/tag/${finalAttrs.src.tag}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
})
|