Unverified Commit 0f18fa20 authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

Merge pull request #313629 from fabaff/amcrest-fix

python312Packages.amcrest: disable on Python 3.12 
parents 2e23d9d2 fb10919e
Loading
Loading
Loading
Loading
+24 −16
Original line number Diff line number Diff line
{ 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 ];
  };
}