It looks like you may just need to specify some dependencies for the package you’re building. Try adding something like this in your buildPythonPackage call:
{
vpn-slice = pkgs.python3Packages.buildPythonPackage rec {
name = "vpn-slice";
# ...
propagatedBuildInputs = with pkgs.python3Packages; [ setproctitle ];
};
}
ERROR: Could not find a version that satisfies the requirement setproctitle (from vpn-slice==0.13) (from versions: none)
ERROR: No matching distribution found for setproctitle (from vpn-slice==0.13)
Full log here…
these derivations will be built:
/nix/store/pli7a8x4v3zfib3cfr7irnd5nqx8afwj-python3.7-vpn-slice.drv
building '/nix/store/pli7a8x4v3zfib3cfr7irnd5nqx8afwj-python3.7-vpn-slice.drv'...
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing setuptools-build-hook
Using setuptoolsBuildPhase
Using setuptoolsShellHook
Sourcing pip-install-hook
Using pipInstallPhase
Sourcing python-imports-check-hook.sh
Using pythonImportsCheckPhase
Sourcing setuptools-check-hook
Using setuptoolsCheckPhase
unpacking sources
unpacking source archive /nix/store/dqcbx0n2rpnwnfz4lk6vzcbpszj0y3bd-source
source root is source
setting SOURCE_DATE_EPOCH to timestamp 315619200 of file source/vpn_slice/version.py
patching sources
configuring
no configure script, doing nothing
building
Executing setuptoolsBuildPhase
running bdist_wheel
running build
running build_py
creating build
creating build/lib
creating build/lib/vpn_slice
copying vpn_slice/version.py -> build/lib/vpn_slice
copying vpn_slice/provider.py -> build/lib/vpn_slice
copying vpn_slice/util.py -> build/lib/vpn_slice
copying vpn_slice/generic.py -> build/lib/vpn_slice
copying vpn_slice/__init__.py -> build/lib/vpn_slice
copying vpn_slice/posix.py -> build/lib/vpn_slice
copying vpn_slice/linux.py -> build/lib/vpn_slice
copying vpn_slice/__main__.py -> build/lib/vpn_slice
copying vpn_slice/mac.py -> build/lib/vpn_slice
running egg_info
creating vpn_slice.egg-info
writing vpn_slice.egg-info/PKG-INFO
writing dependency_links to vpn_slice.egg-info/dependency_links.txt
writing entry points to vpn_slice.egg-info/entry_points.txt
writing requirements to vpn_slice.egg-info/requires.txt
writing top-level names to vpn_slice.egg-info/top_level.txt
writing manifest file 'vpn_slice.egg-info/SOURCES.txt'
reading manifest file 'vpn_slice.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'vpn_slice.egg-info/SOURCES.txt'
installing to build/bdist.macosx-10.6-x86_64/wheel
running install
running install_lib
creating build/bdist.macosx-10.6-x86_64
creating build/bdist.macosx-10.6-x86_64/wheel
creating build/bdist.macosx-10.6-x86_64/wheel/vpn_slice
copying build/lib/vpn_slice/version.py -> build/bdist.macosx-10.6-x86_64/wheel/vpn_slice
copying build/lib/vpn_slice/provider.py -> build/bdist.macosx-10.6-x86_64/wheel/vpn_slice
copying build/lib/vpn_slice/util.py -> build/bdist.macosx-10.6-x86_64/wheel/vpn_slice
copying build/lib/vpn_slice/generic.py -> build/bdist.macosx-10.6-x86_64/wheel/vpn_slice
copying build/lib/vpn_slice/__init__.py -> build/bdist.macosx-10.6-x86_64/wheel/vpn_slice
copying build/lib/vpn_slice/posix.py -> build/bdist.macosx-10.6-x86_64/wheel/vpn_slice
copying build/lib/vpn_slice/linux.py -> build/bdist.macosx-10.6-x86_64/wheel/vpn_slice
copying build/lib/vpn_slice/__main__.py -> build/bdist.macosx-10.6-x86_64/wheel/vpn_slice
copying build/lib/vpn_slice/mac.py -> build/bdist.macosx-10.6-x86_64/wheel/vpn_slice
running install_egg_info
Copying vpn_slice.egg-info to build/bdist.macosx-10.6-x86_64/wheel/vpn_slice-0.13-py3.7.egg-info
running install_scripts
adding license file "LICENSE.txt" (matched pattern "LICEN[CS]E*")
creating build/bdist.macosx-10.6-x86_64/wheel/vpn_slice-0.13.dist-info/WHEEL
creating 'dist/vpn_slice-0.13-py3-none-any.whl' and adding 'build/bdist.macosx-10.6-x86_64/wheel' to it
adding 'vpn_slice/__init__.py'
adding 'vpn_slice/__main__.py'
adding 'vpn_slice/generic.py'
adding 'vpn_slice/linux.py'
adding 'vpn_slice/mac.py'
adding 'vpn_slice/posix.py'
adding 'vpn_slice/provider.py'
adding 'vpn_slice/util.py'
adding 'vpn_slice/version.py'
adding 'vpn_slice-0.13.dist-info/LICENSE.txt'
adding 'vpn_slice-0.13.dist-info/METADATA'
adding 'vpn_slice-0.13.dist-info/WHEEL'
adding 'vpn_slice-0.13.dist-info/entry_points.txt'
adding 'vpn_slice-0.13.dist-info/top_level.txt'
adding 'vpn_slice-0.13.dist-info/RECORD'
removing build/bdist.macosx-10.6-x86_64/wheel
Finished executing setuptoolsBuildPhase
installing
Executing pipInstallPhase
/private/var/folders/6j/j96x43893xd3vst_44_w7pqm0000gn/T/nix-build-python3.7-vpn-slice.drv-0/source/dist /private/var/folders/6j/j96x43893xd3vst_44_w7pqm0000gn/T/nix-build-python3.7-vpn-slice.drv-0/source
Processing ./vpn_slice-0.13-py3-none-any.whl
ERROR: Could not find a version that satisfies the requirement setproctitle (from vpn-slice==0.13) (from versions: none)
ERROR: No matching distribution found for setproctitle (from vpn-slice==0.13)
builder for '/nix/store/pli7a8x4v3zfib3cfr7irnd5nqx8afwj-python3.7-vpn-slice.drv' failed with exit code 1
error: build of '/nix/store/pli7a8x4v3zfib3cfr7irnd5nqx8afwj-python3.7-vpn-slice.drv' failed