Unverified Commit 889ba2c8 authored by OTABI Tomoya's avatar OTABI Tomoya Committed by GitHub
Browse files

python312Packages.txtorcon: 23.11.0 -> 24.8.0 (#336229)

parents ff7ebf51 3134d8e0
Loading
Loading
Loading
Loading
+8 −15
Original line number Diff line number Diff line
@@ -4,42 +4,33 @@
  automat,
  buildPythonPackage,
  cryptography,
  fetchpatch2,
  fetchPypi,
  geoip,
  incremental,
  lsof,
  mock,
  pytestCheckHook,
  pythonOlder,
  setuptools,
  twisted,
  zope-interface,
}:

buildPythonPackage rec {
  pname = "txtorcon";
  version = "23.11.0";
  format = "setuptools";
  version = "24.8.0";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-cfha6T121yZRAFnJ7XTmCLxaXJ99EDhTtJ5BQoBAai8=";
    hash = "sha256-vv4ZE42cjFMHtu5tT+RG0MIB/9HMQErrJl7ZAwmXitA=";
  };

  patches = [
    # https://github.com/meejah/txtorcon/pull/400
    (fetchpatch2 {
      name = "twisted-24.7.0-fixes.patch";
      url = "https://github.com/meejah/txtorcon/commit/88b5dc2971514babd36d837c93550715dea44b09.patch";
      hash = "sha256-O7kFZw+y1PHJRcMdxCczy8UZd3ruLhjLMxh2tcawWI4=";
    })
  ];
  build-system = [ setuptools ];

  propagatedBuildInputs = [
  dependencies = [
    cryptography
    incremental
    twisted
    automat
    zope-interface
@@ -54,6 +45,8 @@ buildPythonPackage rec {

  doCheck = !(stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64);

  pythonImportsCheck = [ "txtorcon" ];

  meta = with lib; {
    description = "Twisted-based Tor controller client, with state-tracking and configuration abstractions";
    homepage = "https://github.com/meejah/txtorcon";