Merge pull request #313629 from fabaff/amcrest-fix
python312Packages.amcrest: disable on Python 3.12
This commit is contained in:
commit
0f18fa2020
@ -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 ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user