python311Packages.python-osc: fix build, enable tests

This commit is contained in:
Martin Weinelt
2023-12-20 20:10:26 +01:00
parent b1d113c0eb
commit c48d94c573
@@ -1,9 +1,12 @@
{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, pythonOlder
# build-system
, setuptools
# tests
, pytestCheckHook
}:
buildPythonPackage rec {
@@ -11,8 +14,6 @@ buildPythonPackage rec {
version = "1.8.3";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-pc4bpWyNgt9Ryz8pRrXdM6cFInkazEuFZOYtKyCtnKo=";
@@ -22,14 +23,14 @@ buildPythonPackage rec {
setuptools
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"pythonosc"
];
nativeCheckInputs = [
pytestCheckHook
];
meta = with lib; {
description = "Open Sound Control server and client in pure python";
homepage = "https://github.com/attwad/python-osc";