python310Packages.ssdp: update build requirements

This commit is contained in:
Fabian Affolter 2023-04-23 12:52:21 +02:00
parent fe2ecaf706
commit 9e16658e30

View file

@ -1,17 +1,18 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, pbr , flit-core
, flit-scm
, pytestCheckHook , pytestCheckHook
, pythonOlder , pythonOlder
, setuptools-scm
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "ssdp"; pname = "ssdp";
version = "1.1.1"; version = "1.1.1";
format = "pyproject";
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.8";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "codingjoe"; owner = "codingjoe";
@ -22,29 +23,28 @@ buildPythonPackage rec {
SETUPTOOLS_SCM_PRETEND_VERSION = version; SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [ postPatch = ''
setuptools-scm substituteInPlace pyproject.toml \
]; --replace "--cov" ""
'';
buildInputs = [ nativeBuildInputs = [
pbr flit-core
flit-scm
]; ];
nativeCheckInputs = [ nativeCheckInputs = [
pytestCheckHook pytestCheckHook
]; ];
postPatch = '' pythonImportsCheck = [
substituteInPlace setup.cfg \ "ssdp"
--replace "pytest-runner" "" \ ];
--replace "--cov=ssdp" ""
'';
pythonImportsCheck = [ "ssdp" ];
meta = with lib; { meta = with lib; {
description = "Python asyncio library for Simple Service Discovery Protocol (SSDP)"; description = "Python asyncio library for Simple Service Discovery Protocol (SSDP)";
homepage = "https://github.com/codingjoe/ssdp"; homepage = "https://github.com/codingjoe/ssdp";
changelog = "https://github.com/codingjoe/ssdp/releases/tag/${version}";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ fab ]; maintainers = with maintainers; [ fab ];
}; };