2021-08-07 00:10:10 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, python
|
|
|
|
, attrs, enum34, hyperlink, incremental, six, twisted, typing, tubes, werkzeug, zope_interface
|
|
|
|
, hypothesis, treq
|
|
|
|
}:
|
2018-03-20 11:55:22 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "klein";
|
2021-08-07 00:10:10 +01:00
|
|
|
version = "21.8.0";
|
2018-03-20 11:55:22 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-08-07 00:10:10 +01:00
|
|
|
sha256 = "1mpydmz90d0n9dwa7mr6pgj5v0kczfs05ykssrasdq368dssw7ch";
|
2018-03-20 11:55:22 +00:00
|
|
|
};
|
|
|
|
|
2021-08-07 00:10:10 +01:00
|
|
|
propagatedBuildInputs = [ attrs enum34 hyperlink incremental six twisted typing tubes werkzeug zope_interface ];
|
2019-06-01 15:12:35 +01:00
|
|
|
|
2021-08-07 00:10:10 +01:00
|
|
|
checkInputs = [ hypothesis treq ];
|
2018-03-20 12:04:04 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
2021-08-07 00:10:10 +01:00
|
|
|
${python.interpreter} -m twisted.trial -j $NIX_BUILD_CORES klein
|
2018-03-20 12:04:04 +00:00
|
|
|
'';
|
2018-03-20 11:55:22 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Klein Web Micro-Framework";
|
|
|
|
homepage = "https://github.com/twisted/klein";
|
|
|
|
license = licenses.mit;
|
2021-08-07 00:10:10 +01:00
|
|
|
maintainers = with maintainers; [ exarkun ];
|
2018-03-20 11:55:22 +00:00
|
|
|
};
|
|
|
|
}
|