pythonPackages.howdoi: 2.0.3 -> 2.0.4, fix build
had to disable the tests (hopefully temporarily) because of missing page_cache directory in release tarball. removed no-longer-needed requests-cache dependency
This commit is contained in:
parent
6bdad12b56
commit
f2e3b79750
@ -2,27 +2,37 @@
|
|||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, six
|
, six
|
||||||
, requests-cache
|
|
||||||
, pygments
|
, pygments
|
||||||
, pyquery
|
, pyquery
|
||||||
, cachelib
|
, cachelib
|
||||||
, appdirs
|
, appdirs
|
||||||
|
, keep
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "howdoi";
|
pname = "howdoi";
|
||||||
version = "2.0.3";
|
version = "2.0.4";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "ed8acb75779f598a831224f33fa991c51764872574a128e9b2f11b83fcace010";
|
sha256 = "0hq5biy0mpycbji2mikfbflw4r39prylr47iqhlz234kvwdy0jsg";
|
||||||
};
|
};
|
||||||
|
|
||||||
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 = ''
|
preCheck = ''
|
||||||
|
mv howdoi _howdoi
|
||||||
export HOME=$(mktemp -d)
|
export HOME=$(mktemp -d)
|
||||||
'';
|
'';
|
||||||
|
pythonImportsCheck = [ "howdoi" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Instant coding answers via the command line";
|
description = "Instant coding answers via the command line";
|
||||||
|
Loading…
Reference in New Issue
Block a user