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

Merge pull request #314015 from fabaff/pyecowitt-refactor

python312Packages.pyecowitt: refactor
parents 7655dd98 1f5606f6
Loading
Loading
Loading
Loading
+10 −6
Original line number Diff line number Diff line
@@ -4,23 +4,26 @@
  buildPythonPackage,
  fetchFromGitHub,
  pythonOlder,
  setuptools,
}:

buildPythonPackage rec {
  pname = "pyecowitt";
  version = "0.21";
  format = "setuptools";
  pyproject = true;

  disabled = pythonOlder "3.8";

  src = fetchFromGitHub {
    owner = "garbled1";
    repo = pname;
    rev = version;
    sha256 = "5VdVo6j2HZXSCWU4NvfWzyS/KJfVb7N1KSMeu8TvWaQ=";
    repo = "pyecowitt";
    rev = "refs/tags/${version}";
    hash = "sha256-5VdVo6j2HZXSCWU4NvfWzyS/KJfVb7N1KSMeu8TvWaQ=";
  };

  propagatedBuildInputs = [ aiohttp ];
  build-system = [ setuptools ];

  dependencies = [ aiohttp ];

  # Project thas no tests
  doCheck = false;
@@ -30,7 +33,8 @@ buildPythonPackage rec {
  meta = with lib; {
    description = "Python module for the EcoWitt Protocol";
    homepage = "https://github.com/garbled1/pyecowitt";
    license = with licenses; [ asl20 ];
    changelog = "https://github.com/garbled1/pyecowitt/releases/tag/${version}";
    license = licenses.asl20;
    maintainers = with maintainers; [ fab ];
  };
}