summary refs log tree commit diff
path: root/pkgs/development/python-modules/ssdp/default.nix
blob: 3c1d2c9976fa8e409e41daeae45a1f9e96258bdd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ 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;
  };
}