python.pkgs.cherrypy: spilt expression in two

This commit is contained in:
Robert Schütz
2019-03-27 15:07:06 +01:00
parent 5f47ad0f8a
commit 489d7351da
3 changed files with 56 additions and 29 deletions

View File

@@ -0,0 +1,36 @@
{ lib, buildPythonPackage, fetchPypi
, setuptools_scm
, cheroot, contextlib2, portend, routes, six, zc_lockfile
, backports_unittest-mock, objgraph, pathpy, pytest, pytestcov, backports_functools_lru_cache, requests_toolbelt
}:
buildPythonPackage rec {
pname = "cherrypy";
version = "17.4.1";
src = fetchPypi {
pname = "CherryPy";
inherit version;
sha256 = "1kl17anzz535jgkn9qcy0c2m0zlafph0iv7ph3bb9mfrs2bgvagv";
};
propagatedBuildInputs = [
cheroot contextlib2 portend routes six zc_lockfile
];
nativeBuildInputs = [ setuptools_scm ];
checkInputs = [
backports_unittest-mock objgraph pathpy pytest pytestcov backports_functools_lru_cache requests_toolbelt
];
checkPhase = ''
pytest
'';
meta = with lib; {
homepage = https://www.cherrypy.org;
description = "A pythonic, object-oriented HTTP framework";
license = licenses.bsd3;
};
}