depot/third_party/nixpkgs/pkgs/development/python-modules/ssdp/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

50 lines
985 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, flit-core
, flit-scm
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "ssdp";
version = "1.3.0";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "codingjoe";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-mORjMEg7Q/2CKZBLICSGF8dcdl98S6mBgJ4jujPGs6M=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace "--cov" ""
'';
nativeBuildInputs = [
flit-core
flit-scm
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"ssdp"
];
meta = with lib; {
description = "Python asyncio library for Simple Service Discovery Protocol (SSDP)";
mainProgram = "ssdp";
homepage = "https://github.com/codingjoe/ssdp";
changelog = "https://github.com/codingjoe/ssdp/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}