depot/third_party/nixpkgs/pkgs/development/python-modules/netdisco/default.nix
Default email 841d9c7fc1 Project import generated by Copybara.
GitOrigin-RevId: 3a8d7958a610cd3fec3a6f424480f91a1b259185
2021-06-29 00:13:55 +01:00

29 lines
711 B
Nix

{ lib, buildPythonPackage, isPy3k, fetchPypi, requests, zeroconf, pytestCheckHook }:
buildPythonPackage rec {
pname = "netdisco";
version = "2.9.0";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "sha256-OpLFM+0ZmhggJ1SuLoSO+qWLcKcpS65sd7u2zkzPys4=";
};
propagatedBuildInputs = [ requests zeroconf ];
checkInputs = [ pytestCheckHook ];
pythonImportsCheck = [
"netdisco"
"netdisco.discovery"
];
meta = with lib; {
description = "Python library to scan local network for services and devices";
homepage = "https://github.com/home-assistant/netdisco";
license = licenses.asl20;
maintainers = with maintainers; [ dotlambda ];
};
}