snscrape: fix startup

This fixes:

Traceback (most recent call last):
  File "/nix/store/607z14x0spsz1lsh0fg9cbyc9lr038mi-python3.7-snscrape-0.3.0/bin/.snscrape-wrapped", line 11, in <module>
    sys.exit(main())
  File "/nix/store/607z14x0spsz1lsh0fg9cbyc9lr038mi-python3.7-snscrape-0.3.0/lib/python3.7/site-packages/snscrape/cli.py", line 218, in main
    args = parse_args()
  File "/nix/store/607z14x0spsz1lsh0fg9cbyc9lr038mi-python3.7-snscrape-0.3.0/lib/python3.7/site-packages/snscrape/cli.py", line 154, in parse_args
    import snscrape.version
  File "/nix/store/607z14x0spsz1lsh0fg9cbyc9lr038mi-python3.7-snscrape-0.3.0/lib/python3.7/site-packages/snscrape/version.py", line 1, in <module>
    import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'

Related: https://github.com/NixOS/nixpkgs/pull/68314
This commit is contained in:
Ivan Kozik 2019-09-11 04:52:49 +00:00
parent b425012fdf
commit 7e7c98a199

View File

@ -3,6 +3,7 @@
, isPy3k
, fetchPypi
, setuptools_scm
, setuptools
, requests
, lxml
, beautifulsoup4
@ -26,7 +27,7 @@ buildPythonPackage rec {
'';
nativeBuildInputs = [ setuptools_scm ];
propagatedBuildInputs = [ requests lxml beautifulsoup4 ];
propagatedBuildInputs = [ setuptools requests lxml beautifulsoup4 ];
meta = with lib; {
homepage = https://github.com/JustAnotherArchivist/snscrape;