Merge pull request #313629 from fabaff/amcrest-fix

python312Packages.amcrest: disable on Python 3.12
This commit is contained in:
Weijia Wang 2024-05-22 14:02:09 +02:00 committed by GitHub
commit 0f18fa2020
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,23 +1,27 @@
{ lib
, argcomplete
, buildPythonPackage
, fetchFromGitHub
, mock
, httpx
, pytestCheckHook
, pythonOlder
, requests
, responses
, urllib3
, typing-extensions
{
lib,
argcomplete,
buildPythonPackage,
fetchFromGitHub,
httpx,
mock,
pytestCheckHook,
pythonAtLeast,
pythonOlder,
requests,
responses,
setuptools,
typing-extensions,
urllib3,
}:
buildPythonPackage rec {
pname = "amcrest";
version = "1.9.8";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.7";
# Still uses distutils, https://github.com/tchellomello/python-amcrest/issues/234
disabled = pythonOlder "3.7" || pythonAtLeast "3.12";
src = fetchFromGitHub {
owner = "tchellomello";
@ -26,7 +30,11 @@ buildPythonPackage rec {
hash = "sha256-v0jWEZo06vltEq//suGrvJ/AeeDxUG5CCFhbf03q34w=";
};
propagatedBuildInputs = [
build-system = [
setuptools
];
dependencies = [
argcomplete
httpx
requests
@ -48,7 +56,7 @@ buildPythonPackage rec {
description = "Python module for Amcrest and Dahua Cameras";
homepage = "https://github.com/tchellomello/python-amcrest";
changelog = "https://github.com/tchellomello/python-amcrest/releases/tag/${version}";
license = with licenses; [ gpl2Only ];
license = licenses.gpl2Only;
maintainers = with maintainers; [ fab ];
};
}