Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.0 kB · 56 lines
Nix
at litex
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657{ lib, aiohttp, aresponses, buildPythonPackage, fetchFromGitHub, inflection, pyjwt, pytest-asyncio, pytestCheckHook, python-dateutil, pythonOlder}:
buildPythonPackage rec { pname = "python-smarttub"; version = "0.0.33"; format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub { owner = "mdz"; repo = pname; rev = "refs/tags/v${version}"; hash = "sha256-BGG5SQfVxhp6ID2Ob+afm75cInVixSPD5012K4HwthU="; };
propagatedBuildInputs = [ aiohttp inflection pyjwt python-dateutil ];
nativeCheckInputs = [ aresponses pytest-asyncio pytestCheckHook ];
postPatch = '' substituteInPlace setup.py \ --replace "pyjwt~=2.1.0" "pyjwt>=2.1.0" '';
pythonImportsCheck = [ "smarttub" ];
meta = with lib; { description = "Python API for SmartTub enabled hot tubs"; homepage = "https://github.com/mdz/python-smarttub"; license = with licenses; [ mit ]; maintainers = with maintainers; [ fab ]; };}