3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/howdoi/default.nix

62 lines
1,006 B
Nix
Raw Normal View History

{ lib
2021-08-15 00:14:35 +01:00
, appdirs
, buildPythonPackage
, cachelib
2021-08-15 00:14:35 +01:00
, cssselect
, fetchFromGitHub
, keep
2021-08-15 00:14:35 +01:00
, lxml
, pygments
, pyquery
, requests
, six
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "howdoi";
version = "2.0.17";
2021-08-15 00:14:35 +01:00
src = fetchFromGitHub {
owner = "gleitz";
repo = pname;
rev = "v${version}";
sha256 = "1cc9hbnalbsd5la9wsm8s6drb79vlzin9qnv86ic81r5nq27n180";
};
2021-08-15 00:14:35 +01:00
propagatedBuildInputs = [
appdirs
cachelib
cssselect
keep
lxml
pygments
pyquery
requests
six
];
checkInputs = [
pytestCheckHook
];
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"
];
pythonImportsCheck = [ "howdoi" ];
meta = with lib; {
description = "Instant coding answers via the command line";
homepage = "https://pypi.python.org/pypi/howdoi";
license = licenses.mit;
2021-08-15 00:14:35 +01:00
maintainers = with maintainers; [ costrouc ];
};
}