Commit 05717bdb authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python312Packages.pyemby: refactor

parent 83f1488a
Loading
Loading
Loading
Loading
+12 −6
Original line number Diff line number Diff line
@@ -4,26 +4,32 @@
  async-timeout,
  buildPythonPackage,
  fetchFromGitHub,
  pythonOlder,
  setuptools,
}:

buildPythonPackage rec {
  pname = "pyemby";
  version = "1.10";
  format = "setuptools";
  pyproject = true;

  disabled = pythonOlder "3.8";

  src = fetchFromGitHub {
    owner = "mezz64";
    repo = pname;
    rev = version;
    repo = "pyemby";
    rev = "refs/tags/${version}";
    hash = "sha256-+A/SNMCUqo9TwWsQXwOKJCqmYhbilIdHYazLNQY+NkU=";
  };

  propagatedBuildInputs = [
  build-system = [ setuptools ];

  dependencies = [
    aiohttp
    async-timeout
  ];

  # Project has no tests
  # Module has no tests
  doCheck = false;

  pythonImportsCheck = [ "pyemby" ];
@@ -31,7 +37,7 @@ buildPythonPackage rec {
  meta = with lib; {
    description = "Python library to interface with the Emby API";
    homepage = "https://github.com/mezz64/pyemby";
    license = with licenses; [ mit ];
    license = licenses.mit;
    maintainers = with maintainers; [ fab ];
  };
}