about summary refs log tree commit diff
path: root/pkgs/development/python-modules/netdisco
diff options
context:
space:
mode:
authorRobert Schütz <robert.schuetz@stud.uni-heidelberg.de>2018-01-13 21:53:41 +0100
committerRobert Schütz <robert.schuetz@stud.uni-heidelberg.de>2018-01-14 16:59:38 +0100
commitf2c08d3e9e65cf944c18aefddae7a79964fc745a (patch)
tree13da3c02e44eb478fdbf560db5278e5e6ae8f96d /pkgs/development/python-modules/netdisco
parent940d1a99f9f6f83a75f1d7ceb9e7d7f0d69610ee (diff)
downloadnixlib-f2c08d3e9e65cf944c18aefddae7a79964fc745a.tar
nixlib-f2c08d3e9e65cf944c18aefddae7a79964fc745a.tar.gz
nixlib-f2c08d3e9e65cf944c18aefddae7a79964fc745a.tar.bz2
nixlib-f2c08d3e9e65cf944c18aefddae7a79964fc745a.tar.lz
nixlib-f2c08d3e9e65cf944c18aefddae7a79964fc745a.tar.xz
nixlib-f2c08d3e9e65cf944c18aefddae7a79964fc745a.tar.zst
nixlib-f2c08d3e9e65cf944c18aefddae7a79964fc745a.zip
python3Packages.netdisco: init at 1.2.3
Diffstat (limited to 'pkgs/development/python-modules/netdisco')
-rw-r--r--pkgs/development/python-modules/netdisco/default.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/netdisco/default.nix b/pkgs/development/python-modules/netdisco/default.nix
new file mode 100644
index 000000000000..280c110e11d5
--- /dev/null
+++ b/pkgs/development/python-modules/netdisco/default.nix
@@ -0,0 +1,32 @@
+{ stdenv, buildPythonPackage, isPy3k, fetchFromGitHub, requests, zeroconf, netifaces, pytest }:
+
+buildPythonPackage rec {
+  pname = "netdisco";
+  version = "1.2.3";
+
+  disabled = !isPy3k;
+
+  # PyPI is missing tests/ directory
+  src = fetchFromGitHub {
+    owner = "home-assistant";
+    repo = pname;
+    rev = version;
+    sha256 = "137p7qlv85mva96v6kav8xxca7i09k4giayag4cglrgjd7q3lk1r";
+  };
+
+  propagatedBuildInputs = [ requests zeroconf netifaces ];
+
+  checkInputs = [ pytest ];
+
+  checkPhase = ''
+    py.test
+  '';
+
+  meta = with stdenv.lib; {
+    description = "Python library to scan local network for services and devices";
+    homepage = https://github.com/home-assistant/netdisco/;
+    license = licenses.asl20;
+    platforms = platforms.unix;
+    maintainers = with maintainers; [ dotlambda ];
+  };
+}