Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.3 kB · 67 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768{ lib, aiohttp, aresponses, awesomeversion, backoff, buildPythonPackage, fetchFromGitHub, mashumaro, orjson, poetry-core, pytest-asyncio, pytest-cov-stub, pytestCheckHook, syrupy, yarl,}:
buildPythonPackage rec { pname = "demetriek"; version = "1.3.0"; pyproject = true;
src = fetchFromGitHub { owner = "frenck"; repo = "python-demetriek"; tag = "v${version}"; hash = "sha256-6vzQaifvQ24LpSQFwPMvEvb1wuyv0iRpLCFHFO9V7sc="; };
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 backoff mashumaro orjson yarl ];
nativeCheckInputs = [ aresponses pytest-asyncio pytest-cov-stub pytestCheckHook syrupy ];
pythonImportsCheck = [ "demetriek" ];
__darwinAllowLocalNetworking = true;
meta = with lib; { 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 = licenses.mit; maintainers = with maintainers; [ fab ]; };}