nixpkgs/pkgs/development/python-modules/soco/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

60 lines
1.0 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, graphviz
, appdirs
, ifaddr
, pythonOlder
, lxml
, mock
, nix-update-script
, pytestCheckHook
, requests
, requests-mock
, xmltodict
}:
buildPythonPackage rec {
pname = "soco";
version = "0.29.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "SoCo";
repo = "SoCo";
rev = "refs/tags/v${version}";
hash = "sha256-6xyJY+qgwMsOgnh+PTVCf4F442hnBwlFnW+bt/cWxGc=";
};
propagatedBuildInputs = [
appdirs
ifaddr
lxml
requests
xmltodict
];
nativeCheckInputs = [
pytestCheckHook
graphviz
mock
requests-mock
];
pythonImportsCheck = [
"soco"
];
passthru.updateScript = nix-update-script { };
meta = with lib; {
description = "CLI and library to control Sonos speakers";
homepage = "http://python-soco.com/";
changelog = "https://github.com/SoCo/SoCo/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ lovesegfault ];
};
}