at 22.05-pre 810 B view raw
1{ lib, buildPythonPackage, fetchPypi, python 2, attrs, enum34, hyperlink, incremental, six, twisted, typing, tubes, werkzeug, zope_interface 3, hypothesis, treq 4}: 5 6buildPythonPackage rec { 7 pname = "klein"; 8 version = "21.8.0"; 9 10 src = fetchPypi { 11 inherit pname version; 12 sha256 = "1mpydmz90d0n9dwa7mr6pgj5v0kczfs05ykssrasdq368dssw7ch"; 13 }; 14 15 propagatedBuildInputs = [ attrs enum34 hyperlink incremental six twisted typing tubes werkzeug zope_interface ]; 16 17 checkInputs = [ hypothesis treq ]; 18 19 checkPhase = '' 20 ${python.interpreter} -m twisted.trial -j $NIX_BUILD_CORES klein 21 ''; 22 23 meta = with lib; { 24 description = "Klein Web Micro-Framework"; 25 homepage = "https://github.com/twisted/klein"; 26 license = licenses.mit; 27 maintainers = with maintainers; [ exarkun ]; 28 }; 29}