Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.1 kB · 56 lines
Nix
at litex
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657{ lib, buildPythonPackage, pythonOlder, fetchFromGitHub, aiohttp, poetry-core, yarl, aresponses, pytest-asyncio, pytestCheckHook}:
buildPythonPackage rec { pname = "ambee"; version = "0.4.0"; disabled = pythonOlder "3.8"; format = "pyproject";
src = fetchFromGitHub { owner = "frenck"; repo = "python-ambee"; rev = "v${version}"; hash = "sha256-2wX2CLr6kdVw2AGPW6DmYI2OBfQFI/iWVorok2d3wx4="; };
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [ aiohttp yarl ];
nativeCheckInputs = [ aresponses pytest-asyncio pytestCheckHook ];
postPatch = '' # Upstream doesn't set a version for the pyproject.toml substituteInPlace pyproject.toml \ --replace "0.0.0" "${version}" \ --replace "--cov" "" '';
pythonImportsCheck = [ "ambee" ];
meta = with lib; { description = "Python client for Ambee API"; homepage = "https://github.com/frenck/python-ambee"; license = with licenses; [ mit ]; maintainers = with maintainers; [ fab ]; };}