mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 21:53:32 +00:00
30 lines
711 B
Nix
30 lines
711 B
Nix
{ lib, buildPythonPackage, isPy3k, fetchPypi, requests, zeroconf, pytestCheckHook }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "netdisco";
|
|
version = "2.8.3";
|
|
|
|
disabled = !isPy3k;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-4WS9PiErB6U7QuejTvbrOmnHetbE5S4zaUyhLCbyihM=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|