Unverified Commit 50f02d41 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

python313Packages.click-threading: modernize (#477379)

parents 3f5ba3a2 5fef6be1
Loading
Loading
Loading
Loading
+14 −16
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchPypi,
  pytest,
  click,
  isPy3k,
  futures ? null,
  fetchPypi,
  pytestCheckHook,
  setuptools,
}:

buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
  pname = "click-threading";
  version = "0.5.0";
  format = "setuptools";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    inherit (finalAttrs) pname version;
    hash = "sha256-rc/mI8AqWVwQfDFAcvZ6Inj+TrQLcsDRoskDzHivNDk=";
  };

  nativeCheckInputs = [ pytest ];
  propagatedBuildInputs = [ click ] ++ lib.optional (!isPy3k) futures;
  build-system = [ setuptools ];

  dependencies = [ click ];

  checkPhase = ''
    py.test
  '';
  nativeCheckInputs = [ pytestCheckHook ];

  # Tests are broken on 3.x
  doCheck = !isPy3k;
  pythonImportsCheck = [ "click_threading" ];

  meta = {
    homepage = "https://github.com/click-contrib/click-threading/";
    description = "Multithreaded Click apps made easy";
    homepage = "https://github.com/click-contrib/click-threading/";
    license = lib.licenses.mit;
    maintainers = [ ];
  };
}
})