summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2024-01-08 21:36:10 +0100
committerFabian Affolter <mail@fabian-affolter.ch>2024-01-08 21:37:28 +0100
commit32672cdcb53e276039042b75fc12cc673a060ea6 (patch)
tree698a3ab012716dd4d0111eb32812a18d4501f81b
parentmaintainers: update KamilaBorowska's username (diff)
downloadnixpkgs-32672cdcb53e276039042b75fc12cc673a060ea6.tar.gz
python311Packages.zm-py: 0.5.2 -> 0.5.4
Diff: https://github.com/rohankapoorcom/zm-py/compare/refs/tags/v0.5.2...v0.5.4 Changelog: https://github.com/rohankapoorcom/zm-py/releases/tag/v0.5.4
-rw-r--r--pkgs/development/python-modules/zm-py/default.nix43
1 files changed, 30 insertions, 13 deletions
diff --git a/pkgs/development/python-modules/zm-py/default.nix b/pkgs/development/python-modules/zm-py/default.nix
index 633cf9c15f6b..ddd5b72b929d 100644
--- a/pkgs/development/python-modules/zm-py/default.nix
+++ b/pkgs/development/python-modules/zm-py/default.nix
@@ -1,29 +1,46 @@
-{ lib, fetchPypi, buildPythonPackage, isPy3k
-, pytest, requests }:
+{ lib
+, buildPythonPackage
+, fetchFromGitHub
+, poetry-core
+, pytestCheckHook
+, pythonOlder
+, requests
+}:
buildPythonPackage rec {
pname = "zm-py";
- version = "0.5.2";
- format = "setuptools";
+ version = "0.5.4";
+ pyproject = true;
- src = fetchPypi {
- inherit pname version;
- sha256 = "b391cca0e52f2a887aa7a46c314b73335b7e3341c428b425fcf314983e5ebb36";
+ disabled = pythonOlder "3.11";
+
+ 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 = ''
- PYTHONPATH="./zoneminder:$PYTHONPATH" pytest
- '';
+ pythonImportsCheck = [
+ "zoneminder"
+ ];
meta = with lib; {
description = "A loose python wrapper around the ZoneMinder REST API";
homepage = "https://github.com/rohankapoorcom/zm-py";
+ changelog = "https://github.com/rohankapoorcom/zm-py/releases/tag/v${version}";
license = licenses.asl20;
maintainers = with maintainers; [ peterhoeg ];
};