Commit c3a8a2ad authored by Doron Behar's avatar Doron Behar
Browse files

python311Packages.pyct: modernize

parent 930dee98
Loading
Loading
Loading
Loading
+20 −7
Original line number Diff line number Diff line
@@ -2,17 +2,24 @@
  lib,
  buildPythonPackage,
  fetchPypi,
  param,
  pytestCheckHook,
  pythonAtLeast,

  # build-system
  setuptools,

  # dependencies
  param,
  pyyaml,
  requests,

  # tests
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "pyct";
  version = "0.5.0";
  format = "setuptools";
  pyproject = true;

  disabled = pythonAtLeast "3.12";

@@ -21,22 +28,28 @@ buildPythonPackage rec {
    hash = "sha256-3Z9KxcvY43w1LAQDYGLTxfZ+/sdtQEdh7xawy/JqpqA=";
  };

  propagatedBuildInputs = [
  build-system = [
    setuptools
  ];

  dependencies = [
    param
    pyyaml
    requests
  ];

  nativeCheckInputs = [ pytestCheckHook ];
  nativeCheckInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [ "pyct" ];

  meta = with lib; {
  meta = {
    description = "ClI for Python common tasks for users";
    mainProgram = "pyct";
    homepage = "https://github.com/pyviz/pyct";
    changelog = "https://github.com/pyviz-dev/pyct/releases/tag/v${version}";
    license = licenses.bsd3;
    license = lib.licenses.bsd3;
    maintainers = [ ];
  };
}