5aa4b19946
Refs: e6754980264fe927320d5ff2dbd24ca4fac9a160 1e9cc5b9844ef603fe160e9f671178f96200774f 793a2fe1e8bb886ca2096c5904e1193dc3268b6d c19cf65261639f749012454932a532aa7c681e4b f6544d618f30fae0bc4798c4387a8c7c9c047a7c
31 lines
608 B
Nix
31 lines
608 B
Nix
{ stdenv
|
|
, 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 stdenv.lib; {
|
|
homepage = https://github.com/codingjoe/ssdp;
|
|
description = "Python asyncio library for Simple Service Discovery Protocol (SSDP).";
|
|
license = licenses.mit;
|
|
};
|
|
}
|