I'm currently trying to package a python package called entangled.py, two of its dependencies aren't in the nixpkgs so I also packaged them. Now I'm trying to package the entangled with these two local packages but idk how to actually use them, rn i do this (using buildPythonPackage):
buildPythonPackage rec {
# ...
dependencies = [
py
filelock
rich
rich-argparse
tomlkit
copier
(callPackage ../brei/package.nix)
pyyaml
(callPackage ../repl-session/package.nix)
msgspec
click
rich-click
typeguard
watchfiles
];
# ...
}
but it returns me this error:
error:
… while evaluating the attribute 'drvPath'
at /nix/store/ln4j1iqnnzs2ynx2cr88bdh65fmds2aq-source/lib/customisation.nix:446:7:
445| // {
446| drvPath =
| ^
447| assert condition;
… while calling the 'derivationStrict' builtin
at <nix/derivation-internal.nix>:37:12:
36|
37| strict = derivationStrict drvAttrs;
| ^
38|
(stack trace truncated; use '--show-trace' to show the full, detailed trace)
error: Dependency is not of a valid type: element 7 of propagatedBuildInputs for python3.13-entangled-cli-2.4.
obviously this is only for testing if the package builds and works correctly, i don't want to send a broken package
SOLUTION: kinda stupid of me lol, i need to add an empty set after the path like so: (callPackage path/to/package { })
also if u're using with import <nixpkgs>;, remove that too
yea i was abt to edit the post saying i found out lol, but still thanks for the help