Skip to content

Instantly share code, notes, and snippets.

@johanot
Created February 15, 2019 12:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johanot/f40e844d5754619933d1c50e743bd9c1 to your computer and use it in GitHub Desktop.
Save johanot/f40e844d5754619933d1c50e743bd9c1 to your computer and use it in GitHub Desktop.
--- a/pkgs/development/python-modules/cherrypy/default.nix
+++ b/pkgs/development/python-modules/cherrypy/default.nix
@@ -1,8 +1,7 @@
{ lib, buildPythonPackage, fetchPypi
, cheroot, contextlib2, portend, routes, six
, setuptools_scm, zc_lockfile
-, backports_unittest-mock, objgraph, pathpy, pytest, pytestcov
-, backports_functools_lru_cache, requests_toolbelt
+, pythonPackages
}:
buildPythonPackage rec {
@@ -18,7 +17,7 @@ buildPythonPackage rec {
buildInputs = [ setuptools_scm ];
- checkInputs = [ backports_unittest-mock objgraph pathpy pytest pytestcov backports_functools_lru_cache requests_toolbelt ];
+ checkInputs = with pythonPackages; [ backports_unittest-mock objgraph pathpy pytest pytestcov backports_functools_lru_cache requests_toolbelt ];
checkPhase = ''
LANG=en_US.UTF-8 pytest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment