Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647{ lib, buildPythonPackage, fetchFromGitHub, pytestCheckHook, requests, responses, setuptools,}:
buildPythonPackage (finalAttrs: { pname = "frigidaire"; version = "1.0.1"; pyproject = true;
src = fetchFromGitHub { owner = "bm1549"; repo = "frigidaire"; tag = finalAttrs.version; hash = "sha256-j2p/vPQ0J25qJkIiBLKZ1pTVRTaTkHmy5A+u9y6MyT8="; };
postPatch = '' substituteInPlace setup.py \ --replace-fail 'version = "0.0.0-dev"' 'version = "${finalAttrs.version}"' '';
build-system = [ setuptools ];
dependencies = [ requests ];
nativeCheckInputs = [ pytestCheckHook responses ];
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 ]; };})