Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 63 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364{ lib, aiohttp, buildPythonPackage, fetchFromGitHub, loguru, numpy, pythonOlder, setuptools, unasync, urllib3}:
buildPythonPackage rec { pname = "pyosohotwaterapi"; version = "1.1.4"; pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub { owner = "osohotwateriot"; repo = "apyosohotwaterapi"; rev = "refs/tags/${version}"; hash = "sha256-7FLGmmndrFqSl4oC8QFIYNlFJPr+xbiZG5ZRt4vx8+s="; };
postPatch = '' # https://github.com/osohotwateriot/apyosohotwaterapi/pull/3 substituteInPlace requirements.txt \ --replace "pre-commit" "" '';
nativeBuildInputs = [ setuptools unasync ];
propagatedBuildInputs = [ aiohttp loguru numpy urllib3 ];
preBuild = '' export HOME=$(mktemp -d) '';
# Module has no tests doCheck = false;
pythonImportsCheck = [ "apyosoenergyapi" ];
meta = with lib; { description = "Module for using the OSO Hotwater API"; homepage = "https://github.com/osohotwateriot/apyosohotwaterapi"; changelog = "https://github.com/osohotwateriot/apyosohotwaterapi/releases/tag/${version}"; license = licenses.mit; maintainers = with maintainers; [ fab ]; };}