aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/python-modules/ssdp/default.nix
blob: 5ade47587d177dd1f2441e2242cbc25cd5c7c5ad (plain)
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
{ stdenv
, buildPythonPackage
, fetchPypi
, isPy27
, pbr
, pytest
}:

buildPythonPackage rec {
  pname = "ssdp";
  version = "1.0.1";

  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;
  };
}