1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-04 06:42:33 +03:00
nixpkgs/pkgs/development/python-modules/ssdp/default.nix

52 lines
940 B
Nix
Raw Normal View History

{ lib
2019-04-30 21:49:58 +01:00
, buildPythonPackage
2021-09-01 13:41:18 +02:00
, fetchFromGitHub
2019-04-30 21:49:58 +01:00
, pbr
2021-09-01 13:41:18 +02:00
, pytestCheckHook
, pythonOlder
, setuptools-scm
2019-04-30 21:49:58 +01:00
}:
buildPythonPackage rec {
pname = "ssdp";
2021-08-26 21:32:45 +02:00
version = "1.1.0";
2019-04-30 21:49:58 +01:00
2021-09-01 13:41:18 +02:00
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "codingjoe";
repo = pname;
rev = version;
sha256 = "19d2b5frpq2qkfkpz173wpjk5jwhkjpk75p8q92nm8iv41nrzljy";
2019-04-30 21:49:58 +01:00
};
2021-09-01 13:41:18 +02:00
SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [
setuptools-scm
];
buildInputs = [
pbr
];
checkInputs = [
pytestCheckHook
];
postPatch = ''
substituteInPlace setup.cfg \
--replace "pytest-runner" "" \
--replace "--cov=ssdp" ""
'';
2021-09-01 13:41:18 +02:00
pythonImportsCheck = [ "ssdp" ];
2019-04-30 21:49:58 +01:00
meta = with lib; {
2021-09-01 13:41:18 +02:00
description = "Python asyncio library for Simple Service Discovery Protocol (SSDP)";
homepage = "https://github.com/codingjoe/ssdp";
2019-04-30 21:49:58 +01:00
license = licenses.mit;
2021-09-01 13:41:18 +02:00
maintainers = with maintainers; [ fab ];
2019-04-30 21:49:58 +01:00
};
}