summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/netdisco
diff options
context:
space:
mode:
authorRobin Gloster <mail@glob.in>2021-05-24 09:55:24 -0500
committerRobin Gloster <mail@glob.in>2021-05-24 09:55:24 -0500
commit4bc5fbef9d159e143fb7e2c3231932e6e76f667c (patch)
treee2198f5c552e0667d838b8ec764ddb3a4d8f6dec /pkgs/development/python-modules/netdisco
parentjq: fix build with structured-attrs on darwin (diff)
parentMerge pull request #123802 from superherointj/package-virtmanager-bugfix (diff)
downloadnixpkgs-origin/structured-attrs.tar.gz
Merge remote-tracking branch 'upstream/master' into structured-attrsorigin/structured-attrs
Diffstat (limited to 'pkgs/development/python-modules/netdisco')
-rw-r--r--pkgs/development/python-modules/netdisco/default.nix17
1 files changed, 9 insertions, 8 deletions
diff --git a/pkgs/development/python-modules/netdisco/default.nix b/pkgs/development/python-modules/netdisco/default.nix
index 489b6bddf562..dd17a3f6c10f 100644
--- a/pkgs/development/python-modules/netdisco/default.nix
+++ b/pkgs/development/python-modules/netdisco/default.nix
@@ -1,23 +1,24 @@
-{ lib, buildPythonPackage, isPy3k, fetchPypi, requests, zeroconf, netifaces, pytest }:
+{ lib, buildPythonPackage, isPy3k, fetchPypi, requests, zeroconf, pytestCheckHook }:
buildPythonPackage rec {
pname = "netdisco";
- version = "2.8.2";
+ version = "2.8.3";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
- sha256 = "dcaabf83b204282aacfb213b18799eb7af2d5a6defe529487bbd0548036392fe";
+ sha256 = "sha256-4WS9PiErB6U7QuejTvbrOmnHetbE5S4zaUyhLCbyihM=";
};
- propagatedBuildInputs = [ requests zeroconf netifaces ];
+ propagatedBuildInputs = [ requests zeroconf ];
- checkInputs = [ pytest ];
+ checkInputs = [ pytestCheckHook ];
- checkPhase = ''
- py.test
- '';
+ pythonImportsCheck = [
+ "netdisco"
+ "netdisco.discovery"
+ ];
meta = with lib; {
description = "Python library to scan local network for services and devices";