Files
nixpkgs/pkgs/development/python-modules/howdoi/default.nix
T

44 lines
1.0 KiB
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, six
, pygments
, pyquery
2020-04-19 21:39:37 +02:00
, cachelib
, appdirs
, keep
}:
2018-04-03 14:08:17 +02:00
buildPythonPackage rec {
pname = "howdoi";
2020-12-16 18:14:21 +00:00
version = "2.0.8";
2018-04-03 14:08:17 +02:00
src = fetchPypi {
inherit pname version;
2020-12-16 18:14:21 +00:00
sha256 = "9b7cabab87cd614e26b408653bc8937ec27b79ca2fde6b9457da55d2541f75fb";
2018-04-03 14:08:17 +02:00
};
postPatch = ''
substituteInPlace setup.py --replace 'cachelib==0.1' 'cachelib'
'';
2018-04-03 14:08:17 +02:00
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; {
2018-04-03 14:08:17 +02:00
description = "Instant coding answers via the command line";
homepage = "https://pypi.python.org/pypi/howdoi";
2018-04-03 14:08:17 +02:00
license = licenses.mit;
maintainers = [ maintainers.costrouc ];
2018-04-03 14:08:17 +02:00
};
}