Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / hikvision / default.nix
blob07224c6274215de22889d381993d1eec6c7fcca6
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , requests
5 , pytestCheckHook
6 }:
8 buildPythonPackage rec {
9   pname = "hikvision";
10   version = "2.0.4";
12   src = fetchFromGitHub {
13     owner = "fbradyirl";
14     repo = pname;
15     rev = "v${version}";
16     sha256 = "1l0zvir4hf1pcwwcmrhkspbdljzmi4lknxar5bkipdanpsm588mn";
17   };
19   propagatedBuildInputs = [
20     requests
21   ];
23   nativeCheckInputs = [
24     pytestCheckHook
25   ];
27   pythonImportsCheck = [ "hikvision.api" ];
29   meta = with lib; {
30     description = "Python module for interacting with Hikvision IP Cameras";
31     homepage = "https://github.com/fbradyirl/hikvision";
32     license = with licenses; [ mit ];
33     maintainers = with maintainers; [ fab ];
34   };