nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 requests,
7 setuptools,
8 vcrpy,
9}:
10
11buildPythonPackage rec {
12 pname = "libpyvivotek";
13 version = "0.6.1";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "HarlemSquirrel";
18 repo = "python-vivotek";
19 tag = "v${version}";
20 hash = "sha256-ai+FlvyrdeLyg/PJU8T0fTtbdnlyGo6mE4AM2oRATj8=";
21 };
22
23 build-system = [ setuptools ];
24
25 dependencies = [ requests ];
26
27 nativeCheckInputs = [
28 pytestCheckHook
29 vcrpy
30 ];
31
32 pythonImportsCheck = [ "libpyvivotek" ];
33
34 meta = {
35 description = "Python Library for Vivotek IP Cameras";
36 homepage = "https://github.com/HarlemSquirrel/python-vivotek";
37 changelog = "https://github.com/HarlemSquirrel/python-vivotek/releases/tag/${src.tag}";
38 license = lib.licenses.asl20;
39 maintainers = with lib.maintainers; [ fab ];
40 };
41}