Merge pull request #279678 from fabaff/zm-py-bump

python311Packages.zm-py: 0.5.2 -> 0.5.4
This commit is contained in:
Fabian Affolter 2024-01-10 08:28:09 +01:00 committed by GitHub
commit 1892682ab5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,29 +1,46 @@
{ lib, fetchPypi, buildPythonPackage, isPy3k { lib
, pytest, requests }: , buildPythonPackage
, fetchFromGitHub
, poetry-core
, pytestCheckHook
, pythonOlder
, requests
}:
buildPythonPackage rec { buildPythonPackage rec {
pname = "zm-py"; pname = "zm-py";
version = "0.5.2"; version = "0.5.4";
format = "setuptools"; pyproject = true;
src = fetchPypi { disabled = pythonOlder "3.11";
inherit pname version;
sha256 = "b391cca0e52f2a887aa7a46c314b73335b7e3341c428b425fcf314983e5ebb36"; src = fetchFromGitHub {
owner = "rohankapoorcom";
repo = "zm-py";
rev = "refs/tags/v${version}";
hash = "sha256-n9FRX2Pnn96H0HVT4SHLJgONc0XzQ005itMNpvl9IYg=";
}; };
disabled = !isPy3k; nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [ requests ]; propagatedBuildInputs = [
requests
];
nativeCheckInputs = [ pytest ]; nativeCheckInputs = [
pytestCheckHook
];
checkPhase = '' pythonImportsCheck = [
PYTHONPATH="./zoneminder:$PYTHONPATH" pytest "zoneminder"
''; ];
meta = with lib; { meta = with lib; {
description = "A loose python wrapper around the ZoneMinder REST API"; description = "A loose python wrapper around the ZoneMinder REST API";
homepage = "https://github.com/rohankapoorcom/zm-py"; homepage = "https://github.com/rohankapoorcom/zm-py";
changelog = "https://github.com/rohankapoorcom/zm-py/releases/tag/v${version}";
license = licenses.asl20; license = licenses.asl20;
maintainers = with maintainers; [ peterhoeg ]; maintainers = with maintainers; [ peterhoeg ];
}; };