git.iko.soy/typeable/nixpkgs
on master help sign in
internetarchive: Provide setuptools at runtime

Since commit f7e28bf5d8181926e600a222cb70180519d09726 ("Split buildPythonPackage into setup hooks"), the `ia` command provided by this package has crashed with the error: Traceback (most recent call last): File "/nix/store/7n1jf081h0qnj82m2s69mxzj02zf746f-python3.7-internetarchive-1.8.1/bin/.ia-wrapped", line 7, in <module> from internetarchive.cli.ia import main File "/nix/store/7n1jf081h0qnj82m2s69mxzj02zf746f-python3.7-internetarchive-1.8.1/lib/python3.7/site-packages/internetarchive/cli/__init__.py", line 27, in <module> from internetarchive.cli import ia, ia_configure, ia_delete, ia_download, ia_list, \ File "/nix/store/7n1jf081h0qnj82m2s69mxzj02zf746f-python3.7-internetarchive-1.8.1/lib/python3.7/site-packages/internetarchive/cli/ia.py", line 60, in <module> from pkg_resources import iter_entry_points, DistributionNotFound ModuleNotFoundError: No module named 'pkg_resources' This commit fixes that by adding `setuptools` (which contains the 'pkg_resources' module) to `propagatedBuildInputs`.

commit2cbb2590aa0954a07cb4ed1825024e9863dc03c1 authorMatthew Harm Bekkema <id@mbekkema.name> dateWed 11 Dec 2019, 20:21 (7 years ago) parent5d775b1
1 file changed+2−1
pkgs/development/python-modules/internetarchive/default.nix+2−1
pkgs/development/python-modules/internetarchive/default.nix+2−1
@@ -1,6 +1,6 @@
11{ buildPythonPackage, fetchFromGitHub, pytest, six, clint, pyyaml, docopt
22, requests, jsonpatch, args, schema, responses, backports_csv, isPy3k
3−, lib, glibcLocales }:
3+, lib, glibcLocales, setuptools }:
44
55buildPythonPackage rec {
66 pname = "internetarchive";
@@ -23,6 +23,7 @@ buildPythonPackage rec {
2323 jsonpatch
2424 args
2525 schema
26+ setuptools
2627 ] ++ lib.optional (!isPy3k) backports_csv;
2728
2829 checkInputs = [ pytest responses glibcLocales ];