Unverified Commit b33fdab0 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

python313Packages.finitude: fix build (#373149)

parents a8df3f15 8a080ce7
Loading
Loading
Loading
Loading
+11 −8
Original line number Diff line number Diff line
@@ -6,27 +6,29 @@
  pyserial,
  pythonOlder,
  pyyaml,
  legacy-cgi,
  setuptools,
}:

buildPythonPackage rec {
  pname = "finitude";
  version = "0.1.1";
  format = "pyproject";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "dulitz";
    repo = pname;
    rev = "v${version}";
    repo = "finitude";
    tag = "v${version}";
    hash = "sha256-yCI5UCRDhw+dJoTKyjmHbAGBm3by2AyxHKlqCywnLcs=";
  };

  nativeBuildInputs = [ setuptools ];
  build-system = [ setuptools ];

  propagatedBuildInputs = [
  dependencies = [
    pyserial
    legacy-cgi
    prometheus-client
    pyyaml
  ];
@@ -36,10 +38,11 @@ buildPythonPackage rec {

  pythonImportsCheck = [ "finitude" ];

  meta = with lib; {
  meta = {
    description = "Python module to get data from ABCD bus (RS-485) used by Carrier Infinity and Bryant Evolution HVAC systems";
    homepage = "https://github.com/dulitz/finitude";
    license = licenses.mit;
    maintainers = with maintainers; [ fab ];
    changelog = "https://github.com/dulitz/finitude/releases/tag/v${version}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ fab ];
  };
}