Merge pull request #109012 from fabaff/pypck

This commit is contained in:
Sandro 2021-01-12 23:32:58 +01:00 committed by GitHub
commit 90b1dbeb09
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 48 additions and 1 deletions

View file

@ -0,0 +1,45 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytest-asyncio
, pytest-cov
, pytest-timeout
, pytestCheckHook
, pythonOlder
, stdenv
}:
buildPythonPackage rec {
pname = "pypck";
version = "0.7.8";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "alengwenus";
repo = pname;
rev = version;
sha256 = "06yqyqpzpypid27z31prvsp7nzpjqzn7gjlfqwjhhxl8fdgh8hkr";
};
checkInputs = [
pytest-asyncio
pytest-cov
pytest-timeout
pytestCheckHook
];
disabledTests = lib.optionals stdenv.isDarwin [
"test_connection_lost"
];
__darwinAllowLocalNetworking = true;
pythonImportsCheck = [ "pypck" ];
meta = with lib; {
description = "LCN-PCK library written in Python";
homepage = "https://github.com/alengwenus/pypck";
license = with licenses; [ epl20 ];
maintainers = with maintainers; [ fab ];
};
}

View file

@ -428,7 +428,7 @@
"lannouncer" = ps: with ps; [ ];
"lastfm" = ps: with ps; [ pylast ];
"launch_library" = ps: with ps; [ ]; # missing inputs: pylaunches
"lcn" = ps: with ps; [ ]; # missing inputs: pypck
"lcn" = ps: with ps; [ pypck ];
"lg_netcast" = ps: with ps; [ ]; # missing inputs: pylgnetcast-homeassistant
"lg_soundbar" = ps: with ps; [ ]; # missing inputs: temescal
"life360" = ps: with ps; [ ]; # missing inputs: life360

View file

@ -5600,6 +5600,8 @@ in {
pypcap = callPackage ../development/python-modules/pypcap { };
pypck = callPackage ../development/python-modules/pypck { };
pypdf2 = callPackage ../development/python-modules/pypdf2 { };
pyPdf = callPackage ../development/python-modules/pypdf { };