python3Packages.pysonos: 0.0.37 -> 0.0.40

This commit is contained in:
Martin Weinelt 2021-02-02 15:39:29 +01:00
parent 4082a4e50c
commit 1f9b9159ec
No known key found for this signature in database
GPG key ID: 87C1E9888F856759

View file

@ -1,6 +1,6 @@
{ lib
, buildPythonPackage
, fetchPypi
, fetchFromGitHub
, isPy3k
, xmltodict
, requests
@ -9,17 +9,21 @@
# Test dependencies
, pytest, pylint, flake8, graphviz
, mock, sphinx, sphinx_rtd_theme
, requests-mock
}:
buildPythonPackage rec {
pname = "pysonos";
version = "0.0.37";
version = "0.0.40";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "43a046c1c6086500fb0f4be1094ca963f5b0f555a04b692832b2b88ab741824e";
# pypi package is missing test fixtures
src = fetchFromGitHub {
owner = "amelchio";
repo = pname;
rev = "v${version}";
sha256 = "0a0c7jwv39nbvpdcx32sd8kjmj4nyrd7k0yxhpmxdnx4zr4vvzqg";
};
propagatedBuildInputs = [ xmltodict requests ifaddr ];
@ -27,6 +31,7 @@ buildPythonPackage rec {
checkInputs = [
pytest pylint flake8 graphviz
mock sphinx sphinx_rtd_theme
requests-mock
];
checkPhase = ''