Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.0 kB · 49 lines
Nix
at litex
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950{ lib, aiohttp, buildPythonPackage, fetchFromGitHub, pytest-asyncio, pytestCheckHook, pythonOlder}:
buildPythonPackage rec { pname = "pysmartthings"; version = "0.7.7"; format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub { owner = "andrewsayre"; repo = pname; rev = version; hash = "sha256-AzAiMn88tRRPwMpwSnKoS1XUERHbKz0sVm/TjcbTsGs="; };
propagatedBuildInputs = [ aiohttp ];
nativeCheckInputs = [ pytest-asyncio pytestCheckHook ];
postPatch = '' substituteInPlace setup.py \ --replace "aiohttp>=3.8.0,<4.0.0" "aiohttp<=4.0.0" '';
pythonImportsCheck = [ "pysmartthings" ];
meta = with lib; { description = "Python library for interacting with the SmartThings cloud API"; homepage = "https://github.com/andrewsayre/pysmartthings"; changelog = "https://github.com/andrewsayre/pysmartthings/releases/tag/${version}"; license = with licenses; [ mit ]; maintainers = with maintainers; [ fab ]; };}