diff options
author | Robert Scott <code@humanleg.org.uk> | 2020-08-31 15:05:07 +0100 |
---|---|---|
committer | Jon <jonringer@users.noreply.github.com> | 2020-08-31 11:44:51 -0700 |
commit | f2e3b79750033fa2e87e3925d10a46f2ff091302 (patch) | |
tree | 3f72c149223d09ec2f8adeb06671c77fa0360a32 /pkgs/development/python-modules | |
parent | 6bdad12b56cf406d6f8653036a50da2639a838ff (diff) | |
download | nixpkgs-f2e3b79750033fa2e87e3925d10a46f2ff091302.tar nixpkgs-f2e3b79750033fa2e87e3925d10a46f2ff091302.tar.gz nixpkgs-f2e3b79750033fa2e87e3925d10a46f2ff091302.tar.bz2 nixpkgs-f2e3b79750033fa2e87e3925d10a46f2ff091302.tar.lz nixpkgs-f2e3b79750033fa2e87e3925d10a46f2ff091302.tar.xz nixpkgs-f2e3b79750033fa2e87e3925d10a46f2ff091302.tar.zst nixpkgs-f2e3b79750033fa2e87e3925d10a46f2ff091302.zip |
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
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r-- | pkgs/development/python-modules/howdoi/default.nix | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/pkgs/development/python-modules/howdoi/default.nix b/pkgs/development/python-modules/howdoi/default.nix index 93db5f48e40..83f340fc8d8 100644 --- a/pkgs/development/python-modules/howdoi/default.nix +++ b/pkgs/development/python-modules/howdoi/default.nix @@ -2,27 +2,37 @@ , buildPythonPackage , fetchPypi , six -, requests-cache , pygments , pyquery , cachelib , appdirs +, keep }: buildPythonPackage rec { pname = "howdoi"; - version = "2.0.3"; + version = "2.0.4"; src = fetchPypi { 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 = '' + mv howdoi _howdoi export HOME=$(mktemp -d) ''; + pythonImportsCheck = [ "howdoi" ]; meta = with lib; { description = "Instant coding answers via the command line"; |