Skip to content

Commit

Permalink
build(nix): base flake.nix was failing on pylint
Browse files Browse the repository at this point in the history
Using _data/python-pfhub/.loca for local python installs.
  • Loading branch information
wd15 committed Aug 13, 2023
1 parent e0e6491 commit bb69614
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
6 changes: 3 additions & 3 deletions _data/python-pfhub/flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion _data/python-pfhub/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
];

propagatedBuildInputs = with pypkgs; [
pythonRelaxDepsHook
pyother.zenodo_client
numpy
pytest
Expand Down Expand Up @@ -91,9 +92,13 @@

pfhubdev = (pfhub.overridePythonAttrs (old: rec {

pythonRemoveDeps = [
"linkml"
];

propagatedBuildInputs = old.propagatedBuildInputs ++ extra;

nativeBuildInputs = propagatedBuildInputs;# ++ extra;
nativeBuildInputs = [ pypkgs.pythonRelaxDepsHook ] ++ propagatedBuildInputs;# ++ extra;

PIP_DISABLE_PIP_VERSION_CHECK = true;

Expand Down
8 changes: 4 additions & 4 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
notebook
ipykernel
pykwalify
pip
];
};

Expand All @@ -58,7 +59,7 @@
shellHook = ''
SOURCE_DATE_EPOCH=$(date +%s)
export PYTHONUSERBASE=$PWD/.local
export PYTHONUSERBASE=$PWD/_data/python-pfhub/.local
export USER_SITE=`python -c "import site; print(site.USER_SITE)"`
export PYTHONPATH=$PYTHONPATH:$USER_SITE:$(pwd)
export PATH=$PATH:$PYTHONUSERBASE/bin
Expand Down

0 comments on commit bb69614

Please sign in to comment.