mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 11:22:58 +00:00
35 lines
863 B
Nix
35 lines
863 B
Nix
{ lib, buildPythonPackage, fetchPypi, xmltodict, requests
|
|
|
|
# Test dependencies
|
|
, pytest, pytestcov, coveralls, pylint, flake8, graphviz, mock, sphinx
|
|
, sphinx_rtd_theme
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "soco";
|
|
version = "0.18.1";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "de033ad69f86a655f50d407648b3aa2dd9647c69fd7bb317e9adfcd38a1adf4b";
|
|
};
|
|
|
|
postPatch = ''
|
|
# https://github.com/SoCo/SoCo/pull/670
|
|
substituteInPlace requirements-dev.txt \
|
|
--replace "pytest-cov>=2.4.0,<2.6" "pytest-cov>=2.4.0"
|
|
'';
|
|
|
|
propagatedBuildInputs = [ xmltodict requests ];
|
|
checkInputs = [
|
|
pytest pytestcov coveralls pylint flake8 graphviz mock sphinx
|
|
sphinx_rtd_theme
|
|
];
|
|
|
|
meta = {
|
|
homepage = http://python-soco.com/;
|
|
description = "A CLI and library to control Sonos speakers";
|
|
license = lib.licenses.mit;
|
|
};
|
|
}
|