nixpkgs/pkgs/development/python-modules/klein/default.nix

30 lines
810 B
Nix
Raw Normal View History

{ 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";
version = "21.8.0";
2018-03-20 11:55:22 +00:00
src = fetchPypi {
inherit pname version;
sha256 = "1mpydmz90d0n9dwa7mr6pgj5v0kczfs05ykssrasdq368dssw7ch";
2018-03-20 11:55:22 +00:00
};
propagatedBuildInputs = [ attrs enum34 hyperlink incremental six twisted typing tubes werkzeug zope_interface ];
2019-06-01 15:12:35 +01:00
checkInputs = [ hypothesis treq ];
checkPhase = ''
${python.interpreter} -m twisted.trial -j $NIX_BUILD_CORES klein
'';
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;
maintainers = with maintainers; [ exarkun ];
2018-03-20 11:55:22 +00:00
};
}