Add klein.

This commit is contained in:
Itamar Turner-Trauring 2021-11-23 10:33:45 -05:00
parent f549488bb5
commit 6c514dfda5
2 changed files with 21 additions and 0 deletions

18
nix/klein.nix Normal file
View File

@ -0,0 +1,18 @@
{ lib, buildPythonPackage, fetchPypi }:
buildPythonPackage rec {
pname = "klein";
version = "21.8.0";
src = fetchPypi {
sha256 = "09i1x5ppan3kqsgclbz8xdnlvzvp3amijbmdzv0kik8p5l5zswxa";
inherit pname version;
};
doCheck = false;
meta = with lib; {
homepage = https://github.com/twisted/klein;
description = "Nicer web server for Twisted";
license = licenses.mit;
};
}

View File

@ -28,6 +28,9 @@ self: super: {
packageOverrides = python-self: python-super: {
# collections-extended is not part of nixpkgs at this time.
collections-extended = python-super.pythonPackages.callPackage ./collections-extended.nix { };
# klein is not in nixpkgs 21.05, at least:
klein = python-super.pythonPackages.callPackage ./klein.nix { };
};
};
}