1{ lib, buildPythonPackage, fetchPypi
2, six, twisted, werkzeug, incremental
3, mock }:
4
5buildPythonPackage rec {
6 pname = "klein";
7 version = "17.10.0";
8
9 src = fetchPypi {
10 inherit pname version;
11 sha256 = "30aaf0d78a987d5dbfe0968a07367ad0c73e02823cc8eef4c54f80ab848370d0";
12 };
13
14 propagatedBuildInputs = [ six twisted werkzeug incremental ];
15
16 checkInputs = [ mock ];
17
18 checkPhase = ''
19 trial klein
20 '';
21
22 meta = with lib; {
23 description = "Klein Web Micro-Framework";
24 homepage = "https://github.com/twisted/klein";
25 license = licenses.mit;
26 };
27}