1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/python-modules/cherrypy/default.nix

33 lines
847 B
Nix
Raw Normal View History

2017-12-24 04:03:44 +00:00
{ lib, buildPythonPackage, fetchPypi
, cheroot, portend, routes, six
, setuptools_scm
, backports_unittest-mock, objgraph, pathpy, pytest, pytestcov
2018-06-28 10:14:33 +01:00
, backports_functools_lru_cache, requests_toolbelt
2017-12-24 04:03:44 +00:00
}:
buildPythonPackage rec {
pname = "CherryPy";
2018-06-21 06:37:16 +01:00
version = "16.0.2";
src = fetchPypi {
inherit pname version;
2018-06-21 06:37:16 +01:00
sha256 = "858fbff27235a392026b1d821ad815b587815c94fbb14312e2e64cc23766b9c3";
};
2017-12-24 04:03:44 +00:00
propagatedBuildInputs = [ cheroot portend routes six ];
2017-12-24 04:03:44 +00:00
buildInputs = [ setuptools_scm ];
2018-06-28 10:14:33 +01:00
checkInputs = [ backports_unittest-mock objgraph pathpy pytest pytestcov backports_functools_lru_cache requests_toolbelt ];
2017-12-24 04:03:44 +00:00
checkPhase = ''
LANG=en_US.UTF-8 pytest
'';
meta = with lib; {
homepage = "http://www.cherrypy.org";
description = "A pythonic, object-oriented HTTP framework";
license = licenses.bsd3;
};
}