python3Packages.soco: 0.21.2 -> 0.21.2
This commit is contained in:
parent
a48cf5c9ad
commit
ee06463b2a
@ -1,12 +1,15 @@
|
|||||||
{ buildPythonPackage
|
{ buildPythonPackage
|
||||||
, coveralls
|
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, flake8
|
, fetchpatch
|
||||||
, graphviz
|
, graphviz
|
||||||
|
, ifaddr
|
||||||
|
, isPy27
|
||||||
, lib
|
, lib
|
||||||
, mock
|
, mock
|
||||||
|
, nix-update-script
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, requests
|
, requests
|
||||||
|
, requests-mock
|
||||||
, sphinx
|
, sphinx
|
||||||
, sphinx_rtd_theme
|
, sphinx_rtd_theme
|
||||||
, toml
|
, toml
|
||||||
@ -15,7 +18,8 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "soco";
|
pname = "soco";
|
||||||
version = "0.20";
|
version = "0.21.2";
|
||||||
|
disabled = isPy27;
|
||||||
|
|
||||||
# N.B. We fetch from GitHub because the PyPI tarball doesn't contain the
|
# N.B. We fetch from GitHub because the PyPI tarball doesn't contain the
|
||||||
# required files to run the tests.
|
# required files to run the tests.
|
||||||
@ -23,34 +27,46 @@ buildPythonPackage rec {
|
|||||||
owner = "SoCo";
|
owner = "SoCo";
|
||||||
repo = "SoCo";
|
repo = "SoCo";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0p87aw7wxgdjz0m0nqqcfvbn24hlbq1hh1zxdq2c0k2jcbmaj8zc";
|
sha256 = "sha256-CCgkzUkt9YqTJt9tPBLmYXW6ZuRoMDd7xahYmNXgfM0=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [(fetchpatch {
|
||||||
|
url = "https://patch-diff.githubusercontent.com/raw/SoCo/SoCo/pull/811.patch";
|
||||||
|
sha256 = "sha256-GBd74c8zc25ROO411SZ9TTa+bi8yXJaaOQqY9FM1qj4=";
|
||||||
|
})];
|
||||||
|
|
||||||
# N.B. These exist because:
|
# N.B. These exist because:
|
||||||
# 1. Upstream's pinning isn't well maintained, leaving dependency versions no
|
# 1. Upstream's pinning isn't well maintained, leaving dependency versions no
|
||||||
# longer in nixpkgs.
|
# longer in nixpkgs.
|
||||||
# 2. There is no benefit for us to be running linting and coverage tests.
|
# 2. There is no benefit for us to be running linting and coverage tests.
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
sed -i "/black/d" ./requirements-dev.txt
|
sed -i "/black/d" ./requirements-dev.txt
|
||||||
|
sed -i "/coveralls/d" ./requirements-dev.txt
|
||||||
|
sed -i "/flake8/d" ./requirements-dev.txt
|
||||||
sed -i "/pylint/d" ./requirements-dev.txt
|
sed -i "/pylint/d" ./requirements-dev.txt
|
||||||
sed -i "/pytest-cov/d" ./requirements-dev.txt
|
sed -i "/pytest-cov/d" ./requirements-dev.txt
|
||||||
'';
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
|
ifaddr
|
||||||
requests
|
requests
|
||||||
toml
|
toml
|
||||||
xmltodict
|
xmltodict
|
||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
coveralls
|
|
||||||
flake8
|
|
||||||
graphviz
|
graphviz
|
||||||
mock
|
mock
|
||||||
|
requests-mock
|
||||||
sphinx
|
sphinx
|
||||||
sphinx_rtd_theme
|
sphinx_rtd_theme
|
||||||
];
|
];
|
||||||
|
|
||||||
|
passthru.updateScript = nix-update-script {
|
||||||
|
attrPath = "python3Packages.${pname}";
|
||||||
|
};
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "http://python-soco.com/";
|
homepage = "http://python-soco.com/";
|
||||||
description = "A CLI and library to control Sonos speakers";
|
description = "A CLI and library to control Sonos speakers";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user