Merge pull request #126935 from dotlambda/libpyfoscam-init

This commit is contained in:
Martin Weinelt 2021-06-16 15:29:52 +02:00 committed by GitHub
commit 1dcef0ba7f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 30 additions and 1 deletions

View file

@ -0,0 +1,26 @@
{ lib
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec {
pname = "libpyfoscam";
version = "1.1";
src = fetchPypi {
inherit pname version;
sha256 = "c274cafd2c6493ab397fe9f0f8aae0b2c35c7c661fe76dde3bd2f1cd56b8fc32";
};
# tests need access to a camera
doCheck = false;
pythonImportsCheck = [ "libpyfoscam" ];
meta = with lib; {
description = "Python Library for Foscam IP Cameras";
homepage = "https://github.com/viswa-swami/python-foscam";
license = licenses.lgpl3Plus;
maintainers = with maintainers; [ dotlambda ];
};
}

View file

@ -278,7 +278,7 @@
"foobot" = ps: with ps; [ foobot-async ];
"forked_daapd" = ps: with ps; [ ]; # missing inputs: pyforked-daapd pylibrespot-java
"fortios" = ps: with ps; [ fortiosapi ];
"foscam" = ps: with ps; [ ]; # missing inputs: libpyfoscam
"foscam" = ps: with ps; [ libpyfoscam ];
"foursquare" = ps: with ps; [ aiohttp-cors ];
"free_mobile" = ps: with ps; [ ]; # missing inputs: freesms
"freebox" = ps: with ps; [ freebox-api ];

View file

@ -387,6 +387,7 @@ in with py.pkgs; buildPythonApplication rec {
"folder"
"folder_watcher"
"foobot"
"foscam"
"freebox"
"freedns"
"fritz"

View file

@ -3964,6 +3964,8 @@ in {
libpurecool = callPackage ../development/python-modules/libpurecool { };
libpyfoscam = callPackage ../development/python-modules/libpyfoscam { };
libredwg = toPythonModule (pkgs.libredwg.override {
enablePython = true;
inherit (self) python libxml2;