at master 899 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 poetry-core, 6 pytestCheckHook, 7 pythonOlder, 8 requests, 9}: 10 11buildPythonPackage rec { 12 pname = "zm-py"; 13 version = "0.5.4"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.11"; 17 18 src = fetchFromGitHub { 19 owner = "rohankapoorcom"; 20 repo = "zm-py"; 21 tag = "v${version}"; 22 hash = "sha256-n9FRX2Pnn96H0HVT4SHLJgONc0XzQ005itMNpvl9IYg="; 23 }; 24 25 nativeBuildInputs = [ poetry-core ]; 26 27 propagatedBuildInputs = [ requests ]; 28 29 nativeCheckInputs = [ pytestCheckHook ]; 30 31 pythonImportsCheck = [ "zoneminder" ]; 32 33 meta = with lib; { 34 description = "Loose python wrapper around the ZoneMinder REST API"; 35 homepage = "https://github.com/rohankapoorcom/zm-py"; 36 changelog = "https://github.com/rohankapoorcom/zm-py/releases/tag/v${version}"; 37 license = licenses.asl20; 38 maintainers = with maintainers; [ peterhoeg ]; 39 }; 40}