Unverified Commit 17835451 authored by Pol Dellaiera's avatar Pol Dellaiera Committed by GitHub
Browse files

Merge pull request #333893 from fabaff/python-hosts-bump

python312Packages.python-hosts: 1.0.6 -> 1.0.7
parents 801c4331 67caa7f8
Loading
Loading
Loading
Loading
+5 −12
Original line number Diff line number Diff line
@@ -10,25 +10,18 @@

buildPythonPackage rec {
  pname = "python-hosts";
  version = "1.0.6";
  version = "1.0.7";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-LfWfBzJ3UyArcHxrIUDsIa8pIr1WkUikf6F6v+IVLG4=";
    pname = "python_hosts";
    inherit version;
    hash = "sha256-TFaZHiL2v/woCWgz3nh/kjUOhbfN1ghnBnJcVcTwSrk=";
  };

  # win_inet_pton is required for Windows support
  prePatch = ''
    substituteInPlace setup.py \
      --replace "install_requires=['win_inet_pton']," ""
    substituteInPlace python_hosts/utils.py \
      --replace "import win_inet_pton" ""
  '';

  nativeBuildInputs = [ setuptools ];
  build-system = [ setuptools ];

  nativeCheckInputs = [
    pyyaml