2019-06-01 16:12:35 +02:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, fetchpatch
|
2018-03-20 13:04:04 +01:00
|
|
|
, six, twisted, werkzeug, incremental
|
|
|
|
, mock }:
|
2018-03-20 12:55:22 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "klein";
|
2018-03-20 13:04:04 +01:00
|
|
|
version = "17.10.0";
|
2018-03-20 12:55:22 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-03-20 13:04:04 +01:00
|
|
|
sha256 = "30aaf0d78a987d5dbfe0968a07367ad0c73e02823cc8eef4c54f80ab848370d0";
|
2018-03-20 12:55:22 +01:00
|
|
|
};
|
|
|
|
|
2019-06-01 16:12:35 +02:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "tests-expect-werkzeug-308.patch";
|
2020-04-01 03:11:51 +02:00
|
|
|
url = "https://github.com/twisted/klein/commit/e2a5835b83e37a2bc5faefbfe1890c529b18b9c6.patch";
|
2019-06-01 16:12:35 +02:00
|
|
|
sha256 = "03j0bj3l3hnf7f96rb27i4bzy1iih79ll5bcah7gybdi1wpznh8w";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2018-03-20 13:04:04 +01:00
|
|
|
propagatedBuildInputs = [ six twisted werkzeug incremental ];
|
2018-03-20 12:55:22 +01:00
|
|
|
|
2019-06-01 16:12:35 +02:00
|
|
|
checkInputs = [ mock twisted ];
|
2018-03-20 13:04:04 +01:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
trial klein
|
|
|
|
'';
|
2018-03-20 12:55:22 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Klein Web Micro-Framework";
|
|
|
|
homepage = "https://github.com/twisted/klein";
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|