1{ lib, buildPythonPackage, fetchPypi, fetchpatch
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 patches = [
15 (fetchpatch {
16 name = "tests-expect-werkzeug-308.patch";
17 url = "https://github.com/twisted/klein/commit/e2a5835b83e37a2bc5faefbfe1890c529b18b9c6.patch";
18 sha256 = "03j0bj3l3hnf7f96rb27i4bzy1iih79ll5bcah7gybdi1wpznh8w";
19 })
20 ];
21
22 propagatedBuildInputs = [ six twisted werkzeug incremental ];
23
24 checkInputs = [ mock twisted ];
25
26 checkPhase = ''
27 trial klein
28 '';
29
30 meta = with lib; {
31 description = "Klein Web Micro-Framework";
32 homepage = "https://github.com/twisted/klein";
33 license = licenses.mit;
34 };
35}