2021-02-22 21:28:39 +00:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyvolumio";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "0.1.5";
|
2021-09-28 08:13:01 +00:00
|
|
|
|
2021-02-22 21:28:39 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "OnFreund";
|
|
|
|
repo = "PyVolumio";
|
|
|
|
rev = "v${version}";
|
2021-12-06 16:07:01 +00:00
|
|
|
sha256 = "1nyvflap39cwq1cm9wwl9idvfmz1ixsl80f1dnskx22fk0lmvj4h";
|
2021-02-22 21:28:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ aiohttp ];
|
|
|
|
|
|
|
|
# Project has no tests
|
|
|
|
doCheck = false;
|
2021-09-28 08:13:01 +00:00
|
|
|
|
2021-02-22 21:28:39 +00:00
|
|
|
pythonImportsCheck = [ "pyvolumio" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python module to control Volumio";
|
|
|
|
homepage = "https://github.com/OnFreund/PyVolumio";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|