nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ stdenv, 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 broken = (stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin;
25 description = "Klein Web Micro-Framework";
26 homepage = "https://github.com/twisted/klein";
27 license = licenses.mit;
28 maintainers = with maintainers; [ exarkun ];
29 };
30}