Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768{ lib, aiohttp, aioresponses, awesomeversion, buildPythonPackage, fetchFromGitHub, mashumaro, orjson, poetry-core, pytest-asyncio, pytest-cov-stub, pytestCheckHook, syrupy, tenacity, yarl,}:
buildPythonPackage rec { pname = "demetriek"; version = "2.1.0"; pyproject = true;
src = fetchFromGitHub { owner = "frenck"; repo = "python-demetriek"; tag = "v${version}"; hash = "sha256-35hMOrpyINXOsPA09XnCNOwURLD5dIdhiYSJZDYCWJE="; };
postPatch = '' # Upstream doesn't set a version for the pyproject.toml substituteInPlace pyproject.toml \ --replace-fail "0.0.0" "${version}" '';
build-system = [ poetry-core ];
dependencies = [ aiohttp awesomeversion mashumaro orjson tenacity yarl ];
nativeCheckInputs = [ aioresponses pytest-asyncio pytest-cov-stub pytestCheckHook syrupy ];
pythonImportsCheck = [ "demetriek" ];
__darwinAllowLocalNetworking = true;
meta = { description = "Python client for LaMetric TIME devices"; homepage = "https://github.com/frenck/python-demetriek"; changelog = "https://github.com/frenck/python-demetriek/releases/tag/${src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; };}