This commit is contained in:
Artturin 2024-10-01 21:41:35 +03:00
parent f912451e32
commit 48fa521896
5 changed files with 91 additions and 37 deletions

View file

@ -14,10 +14,19 @@ buildPythonPackage rec {
};
patches = [ ./pyproject.patch ];
format = "pyproject";
propagatedBuildInputs = [ setuptools distro elasticsearch psutil pyyaml rich textual requests ];
propagatedBuildInputs = [
setuptools
distro
elasticsearch
psutil
pyyaml
rich
textual
requests
];
pythonImportsCheck = [
"tt_tools_common"

View file

@ -17,5 +17,10 @@ buildPythonPackage rec {
# patches = [ ./pyproject.patch ./log.patch ];
propagatedBuildInputs = [ setuptools pyyaml pyluwen tabulate ]; #requests textual black distro elasticsearch jsons pydantic psutil pyyaml pyluwen importlib-resources pkgs.pre-commit tools-common ];
propagatedBuildInputs = [
setuptools
pyyaml
pyluwen
tabulate
]; # requests textual black distro elasticsearch jsons pydantic psutil pyyaml pyluwen importlib-resources pkgs.pre-commit tools-common ];
}

View file

@ -1,4 +1,8 @@
{ pkgs, pyluwen, tools-common }:
{
pkgs,
pyluwen,
tools-common,
}:
with pkgs.python3Packages;
@ -15,7 +19,25 @@ buildPythonPackage rec {
format = "pyproject";
patches = [ ./pyproject.patch ./log.patch ];
patches = [
./pyproject.patch
./log.patch
];
propagatedBuildInputs = [ setuptools requests textual black distro elasticsearch jsons pydantic psutil pyyaml pyluwen importlib-resources pkgs.pre-commit tools-common ];
propagatedBuildInputs = [
setuptools
requests
textual
black
distro
elasticsearch
jsons
pydantic
psutil
pyyaml
pyluwen
importlib-resources
pkgs.pre-commit
tools-common
];
}

View file

@ -11,14 +11,22 @@ pkgs.stdenv.mkDerivation {
hash = "sha256-jMxhhFWnCjNZZvFiTCeuEHvxvE0+IoaP4NJkr/CDLy8=";
};
patches = [ ./fmt_mystery.patch ./missing_headers.patch ];
patches = [
./fmt_mystery.patch
./missing_headers.patch
];
makeFlags = [
"DEVICE_CXX=${pkgs.stdenv.cc.targetPrefix}c++"
"ARCH_NAME=grayskull"
];
buildInputs = with pkgs; [ libyamlcpp boost fmt hwloc ];
buildInputs = with pkgs; [
libyamlcpp
boost
fmt
hwloc
];
installPhase = ''
mkdir $out