!jngDrdMgndWibPCYsR:nixos.org

Nix PHP

77 Members
A room for PHP developers running on Nix22 Servers

Load older messages


SenderMessageTime
12 May 2023
@drupol:matrix.orgPolRedacted or Malformed Event16:10:33
@drupol:matrix.orgPolWhat !?!?!?16:10:42
@drupol:matrix.orgPolWhy ?!16:10:47
@drupol:matrix.orgPolRedacted or Malformed Event16:10:50
@drupol:matrix.orgPolWhy is the bot deleting my image ?16:11:06
@drupol:matrix.orgPolis that new?16:11:10
@ma27:nicht-so.sexyma27posting images is disabled in all nixos rooms for now (a few days ago some troll posted child abuse images in the main nixos channel)16:11:40
@drupol:matrix.orgPolOMFG16:11:49
@drupol:matrix.orgPolOk :S16:11:51
@drupol:matrix.orgPolDamn... 16:11:56
@drupol:matrix.orgPolI understand.16:11:59
@drupol:matrix.orgPol hexa: What am I supposed to add here? https://imgur.com/a/fBKfskY 16:13:04
@hexa:lossy.networkhexaif it has a setup.py it uses "setuptools" format16:13:19
@hexa:lossy.networkhexaif it has a pyproject.toml it uses "pyproject" format"16:13:28
@hexa:lossy.networkhexa * if it has a pyproject.toml it uses "pyproject" format16:13:29
@hexa:lossy.networkhexaif it has both, prefer pyproject16:13:34
@drupol:matrix.orgPolOoooh ok, all of this is brand new for me, thanks.16:13:36
@hexa:lossy.networkhexapyproject requires a build-system section in the pyproject.toml16:13:45
@hexa:lossy.networkhexanp 🙂16:13:48
@drupol:matrix.orgPol hexa: I don't understand the attribute propagatedBuildInputs. nix-init add some for abstract-singletion, should I add them ? 16:25:38
@drupol:matrix.orgPol * hexa: I don't understand the attribute propagatedBuildInputs. nix-init add some for abstract-singleton, should I add them ? 16:25:48
@hexa:lossy.networkhexathose are the runtime requirements for python packages16:27:04
@hexa:lossy.networkhexathe things it imports16:27:09
@hexa:lossy.networkhexapost what it created16:27:15
@hexa:lossy.networkhexaand ideally the link to the setup.py/pyproject.toml16:27:23
@drupol:matrix.orgPol Shouldn't it be in buildInputs ? 16:27:22
@drupol:matrix.orgPol
python3.pkgs.buildPythonApplication rec {
  pname = "abstract-singleton";
  version = "1.0";
  format = "pyproject";

  src = fetchFromGitHub {
    owner = "BillSchumacher";
    repo = "Abstract-Singleton";
    rev = version;
    hash = "sha256-lHKU3tXTp/aDa9X8iXk49qyL5Zp+xFYQUX/xTAFS0nw=";
  };

  nativeBuildInputs = [
    python3.pkgs.hatchling
  ];

  propagatedBuildInputs = with python3.pkgs; [
    black
    build
    flake8
    isort
    pylint
    twine
    wheel
  ];

  pythonImportsCheck = [ "abstract_singleton" ];

  meta = with lib; {
    description = "";
    homepage = "https://github.com/BillSchumacher/Abstract-Singleton";
    license = licenses.mit;
    maintainers = with maintainers; [ ];
  };
}

https://github.com/BillSchumacher/Abstract-Singleton/blob/main/pyproject.toml

16:28:07
@drupol:matrix.orgPol This has been generated with nix-init 16:28:30
@hexa:lossy.networkhexaugh, that looks like a lot of dev tools16:28:51
@hexa:lossy.networkhexaalso you should be using buildPythonPackage for libraries16:29:13

Show newer messages


Back to Room ListRoom Version: 6