Merge pull request #109525 from dotlambda/fritzconnection-1.4.0

python3Packages.fritzconnection: 1.2.1 -> 1.4.0
This commit is contained in:
Martin Weinelt 2021-01-16 19:32:27 +01:00 committed by GitHub
commit afc9b7bb5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 18 deletions

View File

@ -1,37 +1,26 @@
{ lib, stdenv, buildPythonPackage, pythonOlder, fetchFromGitHub, pytest, requests }: { lib, stdenv, buildPythonPackage, pythonOlder, fetchFromGitHub, pytestCheckHook, requests }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "fritzconnection"; pname = "fritzconnection";
version = "1.2.1"; version = "1.4.0";
# no tests on PyPI
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "kbr"; owner = "kbr";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "17z4shs56ci9mxmilppv5xy9gbnbp6p1h2ms6x55nkvwndacrp7x"; sha256 = "1p8dqcc75xfhyvc9izjzz8c7qfrdkjkrkj36j7ms5fimn5bwk70q";
}; };
disabled = pythonOlder "3.5"; disabled = pythonOlder "3.6";
# Exclude test files from build, which cause ImportMismtachErrors and
# otherwise missing resources during tests. This patch can be dropped once
# https://github.com/kbr/fritzconnection/pull/39 is merged.
prePatch = ''
substituteInPlace setup.py \
--replace 'find_packages()' 'find_packages(exclude=["*.tests"])'
'';
propagatedBuildInputs = [ requests ]; propagatedBuildInputs = [ requests ];
checkInputs = [ pytest ]; checkInputs = [ pytestCheckHook ];
checkPhase = ''
pytest
'';
meta = with lib; { meta = with lib; {
description = "Python-Tool to communicate with the AVM FritzBox using the TR-064 protocol"; description = "Python-Tool to communicate with the AVM FritzBox using the TR-064 protocol";
homepage = "https://bitbucket.org/kbr/fritzconnection"; homepage = "https://github.com/kbr/fritzconnection";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ dotlambda valodim ]; maintainers = with maintainers; [ dotlambda valodim ];
}; };