18 buildPythonPackage rec {
23 disabled = pythonOlder "3.9";
25 src = fetchFromGitHub {
27 repo = "python-demetriek";
28 rev = "refs/tags/v${version}";
29 hash = "sha256-LCHHBcZgO9gw5jyaJiiS4lKyb0ut+PJvKTylIvIKHhc=";
33 # https://github.com/frenck/python-demetriek/pull/531
35 name = "pydantic_2-compatibility.patch";
36 url = "https://github.com/frenck/python-demetriek/commit/e677fe5b735b6b28572e3e5fd6aab56fc056f5e6.patch";
41 hash = "sha256-oMVR45KHDhcPId/0X9obJXCPE8s1gk5IgsGsgZesdZw=";
46 # Upstream doesn't set a version for the pyproject.toml
47 substituteInPlace pyproject.toml \
48 --replace "0.0.0" "${version}" \
52 pythonRelaxDeps = [ "pydantic" ];
58 propagatedBuildInputs = [
72 pythonImportsCheck = [ "demetriek" ];
74 __darwinAllowLocalNetworking = true;
77 description = "Python client for LaMetric TIME devices";
78 homepage = "https://github.com/frenck/python-demetriek";
79 changelog = "https://github.com/frenck/python-demetriek/releases/tag/v${version}";
80 license = licenses.mit;
81 maintainers = with maintainers; [ fab ];