!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.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
@hexa:lossy.networkhexathe packages were mostly fine fwiw 16:29:20
@hexa:lossy.networkhexawouldn't replace them with nix-init now16:29:25
@hexa:lossy.networkhexait's probably using https://github.com/BillSchumacher/Abstract-Singleton/blob/main/requirements.txt16:29:34
@hexa:lossy.networkhexawhich is not ideal 😄16:29:38
@drupol:matrix.orgPol I'm not going to replace it with nix-init, just using nix-init for the meta infos. 16:30:59
@drupol:matrix.orgPol But I see that the propagatedBuildInputs are added, so I wonder. 16:31:11
@hexa:lossy.networkhexaoh and commits should have an explicit python version, ideally the default, which is 3.10 😄16:37:17
@hexa:lossy.networkhexapython310Packages.package16:37:21
@hexa:lossy.networkhexathis is the only way to automatically build them on ofborg16:37:33
@hexa:lossy.networkhexapython3Packages for some reason doesn't do that16:37:38
@drupol:matrix.orgPolOki will do.16:43:04
@hexa:lossy.networkhexaapparently the php80 removal was brought up in https://github.com/NixOS/nixpkgs/issues/22450517:25:00
13 May 2023
@drupol:matrix.orgPolPHP Bump PR is ready: https://github.com/NixOS/nixpkgs/pull/23094107:11:07
@drupol:matrix.orgPolWe should also move on with: https://github.com/NixOS/nixpkgs/pull/22775308:53:10
15 May 2023
@hexa:lossy.networkhexa Elis 🌱: openssl 1.1 is going to be marked eol for 23.05; what about the php 8.0 removal? https://github.com/NixOS/nixpkgs/issues/224457#issuecomment-1495393406 19:10:08
@drupol:matrix.orgPolLet's get rid of PHP8019:18:22
@shyim:matrix.orgShyimlooking for reviewers :) https://github.com/NixOS/nixpkgs/pull/23207919:50:33
@drupol:matrix.orgPol
In reply to @shyim:matrix.org
looking for reviewers :) https://github.com/NixOS/nixpkgs/pull/232079
Added some nits ! :)
20:08:15
@hexa:lossy.networkhexa
In reply to @drupol:matrix.org
Let's get rid of PHP80
needs someone to invest the time
20:31:18
@hexa:lossy.networkhexaideally a maintainer20:31:25

Show newer messages


Back to Room ListRoom Version: 6