2019-04-30 20:49:58 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2019-09-14 18:53:02 +00:00
|
|
|
, isPy27
|
2019-04-30 20:49:58 +00:00
|
|
|
, pbr
|
|
|
|
, pytest
|
2019-10-07 15:20:23 +00:00
|
|
|
, isPy3k
|
2019-04-30 20:49:58 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ssdp";
|
|
|
|
version = "1.0.1";
|
2019-10-07 15:20:23 +00:00
|
|
|
disabled = !isPy3k;
|
2019-04-30 20:49:58 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "0yhjqs9jyvwmba8fi72xfi9k8pxy11wkz4iywayrg71ka3la49bk";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ pbr ];
|
|
|
|
checkInputs = [ pytest ];
|
2019-09-14 18:53:02 +00:00
|
|
|
|
|
|
|
# test suite uses new async primitives
|
|
|
|
doCheck = !isPy27;
|
2019-04-30 20:49:58 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/codingjoe/ssdp";
|
2019-04-30 20:49:58 +00:00
|
|
|
description = "Python asyncio library for Simple Service Discovery Protocol (SSDP).";
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|