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