`buildDotnetModule`: add support for installing pre-release tools (#374663)
[NixPkgs.git] / pkgs / development / python-modules / zm-py / default.nix
blobae33b13ccd7e46c2dd65bf0c909a41f7a3045804
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   poetry-core,
6   pytestCheckHook,
7   pythonOlder,
8   requests,
9 }:
11 buildPythonPackage rec {
12   pname = "zm-py";
13   version = "0.5.4";
14   pyproject = true;
16   disabled = pythonOlder "3.11";
18   src = fetchFromGitHub {
19     owner = "rohankapoorcom";
20     repo = "zm-py";
21     tag = "v${version}";
22     hash = "sha256-n9FRX2Pnn96H0HVT4SHLJgONc0XzQ005itMNpvl9IYg=";
23   };
25   nativeBuildInputs = [ poetry-core ];
27   propagatedBuildInputs = [ requests ];
29   nativeCheckInputs = [ pytestCheckHook ];
31   pythonImportsCheck = [ "zoneminder" ];
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   };