about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/klein/default.nix
blob: 3dfbb4e17db285dde86cb9adc89838d7721102a2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ lib, buildPythonPackage, fetchPypi
, six, twisted, werkzeug, incremental
, mock }:

buildPythonPackage rec {
  pname = "klein";
  version = "17.10.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "30aaf0d78a987d5dbfe0968a07367ad0c73e02823cc8eef4c54f80ab848370d0";
  };

  propagatedBuildInputs = [ six twisted werkzeug incremental ];

  checkInputs = [ mock ];

  checkPhase = ''
    trial klein
  '';

  meta = with lib; {
    description = "Klein Web Micro-Framework";
    homepage    = "https://github.com/twisted/klein";
    license     = licenses.mit;
  };
}