Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758{ lib, aiohttp, buildPythonPackage, fetchFromGitHub, hatch-vcs, hatchling, pytest-asyncio, pytestCheckHook, pythonOlder,}:
buildPythonPackage (finalAttrs: { pname = "my-pv"; version = "0.0.17"; pyproject = true;
disabled = pythonOlder "3.14";
src = fetchFromGitHub { owner = "my-PV"; repo = "py-mypv"; tag = finalAttrs.version; hash = "sha256-zpzVJRzmNkloY+ZVnaTWMruTJrK7ScdYObfdg7Uh/TQ="; };
postPatch = '' substituteInPlace pyproject.toml \ --replace-fail "hatchling>=1.32.4" "hatchling" '';
pythonRelaxDeps = [ "aiohttp" ];
build-system = [ hatch-vcs hatchling ];
dependencies = [ aiohttp ];
nativeCheckInputs = [ pytest-asyncio pytestCheckHook ];
pythonImportsCheck = [ "my_pv" ];
meta = { description = "Library to interface with my-PV devices"; homepage = "https://github.com/my-PV/py-mypv"; changelog = "https://github.com/my-PV/py-mypv/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.asl20; maintainers = [ lib.maintainers.jamiemagee ]; };})