diff --git a/pkgs/development/python-modules/libpyvivotek/default.nix b/pkgs/development/python-modules/libpyvivotek/default.nix new file mode 100644 index 000000000000..db9f14a5a80a --- /dev/null +++ b/pkgs/development/python-modules/libpyvivotek/default.nix @@ -0,0 +1,43 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pytestCheckHook +, pythonOlder +, requests +, vcrpy +}: + +buildPythonPackage rec { + pname = "libpyvivotek"; + version = "0.4.0"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "HarlemSquirrel"; + repo = "python-vivotek"; + rev = "v${version}"; + sha256 = "pNlnGpDjdYE7Lxog8GGZV+UZZmfmt5bwHof5LngPQjg="; + }; + + propagatedBuildInputs = [ + requests + ]; + + checkInputs = [ + pytestCheckHook + vcrpy + ]; + + pythonImportsCheck = [ + "libpyvivotek" + ]; + + meta = with lib; { + description = "Python Library for Vivotek IP Cameras"; + homepage = "https://github.com/HarlemSquirrel/python-vivotek"; + license = licenses.asl20; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 87b06b9eb148..cbde61c0f3cc 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4354,6 +4354,8 @@ in { libpyfoscam = callPackage ../development/python-modules/libpyfoscam { }; + libpyvivotek = callPackage ../development/python-modules/libpyvivotek { }; + libredwg = toPythonModule (pkgs.libredwg.override { enablePython = true; inherit (self) python libxml2;