2019-02-24 17:49:39 +00:00
|
|
|
{ lib
|
2021-08-15 00:14:35 +01:00
|
|
|
, appdirs
|
2019-02-24 17:49:39 +00:00
|
|
|
, buildPythonPackage
|
2020-04-19 20:39:37 +01:00
|
|
|
, cachelib
|
2021-08-15 00:14:35 +01:00
|
|
|
, cssselect
|
|
|
|
, fetchFromGitHub
|
2020-08-31 15:05:07 +01:00
|
|
|
, keep
|
2021-08-15 00:14:35 +01:00
|
|
|
, lxml
|
|
|
|
, pygments
|
|
|
|
, pyquery
|
|
|
|
, requests
|
|
|
|
, six
|
|
|
|
, pytestCheckHook
|
2019-02-24 17:49:39 +00:00
|
|
|
}:
|
2018-04-03 13:08:17 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "howdoi";
|
2021-08-15 00:13:39 +01:00
|
|
|
version = "2.0.17";
|
2018-04-03 13:08:17 +01:00
|
|
|
|
2021-08-15 00:14:35 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gleitz";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1cc9hbnalbsd5la9wsm8s6drb79vlzin9qnv86ic81r5nq27n180";
|
2018-04-03 13:08:17 +01:00
|
|
|
};
|
|
|
|
|
2021-08-15 00:14:35 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
appdirs
|
|
|
|
cachelib
|
|
|
|
cssselect
|
|
|
|
keep
|
|
|
|
lxml
|
|
|
|
pygments
|
|
|
|
pyquery
|
|
|
|
requests
|
|
|
|
six
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2018-04-03 13:08:17 +01:00
|
|
|
|
2019-02-24 17:49:39 +00:00
|
|
|
preCheck = ''
|
|
|
|
export HOME=$(mktemp -d)
|
|
|
|
'';
|
2021-08-15 00:14:35 +01:00
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# AssertionError: "The...
|
|
|
|
"test_get_text_with_one_link"
|
|
|
|
"test_get_text_without_links"
|
|
|
|
];
|
|
|
|
|
2020-08-31 15:05:07 +01:00
|
|
|
pythonImportsCheck = [ "howdoi" ];
|
2019-02-24 17:49:39 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2018-04-03 13:08:17 +01:00
|
|
|
description = "Instant coding answers via the command line";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://pypi.python.org/pypi/howdoi";
|
2018-04-03 13:08:17 +01:00
|
|
|
license = licenses.mit;
|
2021-08-15 00:14:35 +01:00
|
|
|
maintainers = with maintainers; [ costrouc ];
|
2018-04-03 13:08:17 +01:00
|
|
|
};
|
|
|
|
}
|