From 6f9821beb7e5fd3cd1687a4464d5f59f6022a9ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Forsman?= Date: Sat, 21 Sep 2013 19:48:54 +0200 Subject: [PATCH] nwdiag: new package Nwdiag generates network-diagram image from spec-text file (similar to Graphviz). --- pkgs/top-level/all-packages.nix | 2 ++ pkgs/top-level/python-packages.nix | 26 ++++++++++++++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7d9537854bf..141434c0a0f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1403,6 +1403,8 @@ let nssmdns = callPackage ../tools/networking/nss-mdns { }; + nwdiag = pythonPackages.nwdiag; + nylon = callPackage ../tools/networking/nylon { }; nzbget = callPackage ../tools/networking/nzbget { }; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 6754537e72b..3955867484d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3618,6 +3618,32 @@ pythonPackages = modules // import ./python-packages-generated.nix { }; }); + + nwdiag = buildPythonPackage rec { + name = "nwdiag-0.9.4"; + + src = fetchurl { + url = "https://pypi.python.org/packages/source/n/nwdiag/${name}.tar.gz"; + md5 = "199b22f66ec3012c3999177d376a3842"; + }; + + buildInputs = [ pep8 nose unittest2 docutils ]; + + propagatedBuildInputs = [ blockdiag ]; + + # tests fail + doCheck = false; + + meta = with stdenv.lib; { + description = "Generate network-diagram image from spec-text file (similar to Graphviz)"; + homepage = http://blockdiag.com/; + license = licenses.asl20; + platforms = platforms.linux; + maintainers = [ maintainers.bjornfor ]; + }; + }; + + oauth2 = buildPythonPackage (rec { name = "oauth2-1.5.211";