nixpkgs/pkgs/development/python-modules/soco/default.nix
R. RyanTM d88936ad8d python37Packages.soco: 0.17 -> 0.18
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/python3.7-soco/versions
2019-10-23 08:57:33 -07:00

35 lines
849 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";
src = fetchPypi {
inherit pname version;
sha256 = "0bf55mqnz3l3ii26dvx33d35fv7jn7p5kmfwnr0xbpj38sxvhfr4";
};
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;
};
}