depot/third_party/nixpkgs/pkgs/development/python-modules/ssdp/default.nix
Default email ae91cbe6cc Project import generated by Copybara.
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
2021-02-05 18:12:51 +01:00

31 lines
600 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, isPy27
, pbr
, pytest
, isPy3k
}:
buildPythonPackage rec {
pname = "ssdp";
version = "1.0.1";
disabled = !isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "0yhjqs9jyvwmba8fi72xfi9k8pxy11wkz4iywayrg71ka3la49bk";
};
buildInputs = [ pbr ];
checkInputs = [ pytest ];
# test suite uses new async primitives
doCheck = !isPy27;
meta = with lib; {
homepage = "https://github.com/codingjoe/ssdp";
description = "Python asyncio library for Simple Service Discovery Protocol (SSDP).";
license = licenses.mit;
};
}