diff options
author | Frederik Rietdijk <fridh@fridh.nl> | 2020-09-03 19:21:10 +0200 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2020-09-03 19:21:10 +0200 |
commit | 377242d5875b871faed3a942161185594b8f32fa (patch) | |
tree | 8c2fecbe44fc3f8a64bc07b3f2625637f7285779 /pkgs/development/python-modules/howdoi | |
parent | ccde657295161f248053ec5e204f31f7f63fd17d (diff) | |
parent | 5f7aecdf91c7899f9352ed43dffc67e39c2e486b (diff) |
Merge staging-next into staging
Diffstat (limited to 'pkgs/development/python-modules/howdoi')
-rw-r--r-- | pkgs/development/python-modules/howdoi/default.nix | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/howdoi/default.nix b/pkgs/development/python-modules/howdoi/default.nix index 90114db277e2c..a4f1ab6b77287 100644 --- a/pkgs/development/python-modules/howdoi/default.nix +++ b/pkgs/development/python-modules/howdoi/default.nix @@ -2,11 +2,11 @@ , buildPythonPackage , fetchPypi , six -, requests-cache , pygments , pyquery , cachelib , appdirs +, keep }: buildPythonPackage rec { @@ -18,11 +18,21 @@ buildPythonPackage rec { sha256 = "8e4d048ae7ca6182d648f62a66d07360cca2504fe46649c32748b6ef2735f7f4"; }; - propagatedBuildInputs = [ six requests-cache pygments pyquery cachelib appdirs ]; + postPatch = '' + substituteInPlace setup.py --replace 'cachelib==0.1' 'cachelib' + ''; + + propagatedBuildInputs = [ six pygments pyquery cachelib appdirs keep ]; + # author hasn't included page_cache directory (which allows tests to run without + # external requests) in pypi tarball. github repo doesn't have release revisions + # clearly tagged. re-enable tests when either is sorted. + doCheck = false; preCheck = '' + mv howdoi _howdoi export HOME=$(mktemp -d) ''; + pythonImportsCheck = [ "howdoi" ]; meta = with lib; { description = "Instant coding answers via the command line"; |