nixpkgs/pkgs/development/python-modules/pysqueezebox/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

49 lines
918 B
Nix

{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, pytest-asyncio
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "pysqueezebox";
version = "0.6.1";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "rajlaud";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-NCADVSsnaOJfLJ7i18i7d7wlWcyt1DoRFGOVXEEYHPI=";
};
propagatedBuildInputs = [
aiohttp
];
nativeCheckInputs = [
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";
homepage = "https://github.com/rajlaud/pysqueezebox";
license = licenses.asl20;
maintainers = with maintainers; [ nyanloutre ];
};
}