python310Packages.pysqueezebox: enable tests
This commit is contained in:
parent
c8fa27ea00
commit
254d2ff6a1
1 changed files with 28 additions and 7 deletions
|
@ -1,22 +1,43 @@
|
|||
{ lib, fetchPypi, buildPythonPackage, pythonOlder, aiohttp }:
|
||||
{ lib
|
||||
, aiohttp
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pytest-asyncio
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pysqueezebox";
|
||||
version = "0.6.0";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-qc6ffWk62EF+IOLb2XVWtDrrZ0LVs7VtxJG1qrrUPPg=";
|
||||
src = fetchFromGitHub {
|
||||
owner = "rajlaud";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-0ArKVRy4H0NWShlQMziKvbHp9OjpAkEKp4zrvpVlXOk=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
aiohttp
|
||||
];
|
||||
|
||||
# No tests in the Pypi distribution
|
||||
doCheck = false;
|
||||
pythonImportsCheck = [ "pysqueezebox" ];
|
||||
checkInputs = [
|
||||
pytest-asyncio
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"pysqueezebox"
|
||||
];
|
||||
|
||||
disabledTestPaths = [
|
||||
# Tests require network access
|
||||
"tests/test_integration.py"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Asynchronous library to control Logitech Media Server";
|
||||
|
|
Loading…
Reference in a new issue