2022-08-12 12:06:08 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, fetchpatch, pytestCheckHook }:
|
2022-06-26 10:26:21 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "oscpy";
|
|
|
|
version = "0.6.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2022-06-26 10:26:21 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kivy";
|
|
|
|
repo = "oscpy";
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-Luj36JLgU9xbBMydeobyf98U5zs5VwWQOPGV7TPXQwA=";
|
|
|
|
};
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
patches = [
|
|
|
|
# Fix flaky tests with kivy/oscpy#67 - https://github.com/kivy/oscpy/pull/67
|
|
|
|
(fetchpatch {
|
|
|
|
name = "improve-reliability-of-test_intercept_errors.patch";
|
|
|
|
url = "https://github.com/kivy/oscpy/commit/2bc114a97692aef28f8b84d52d0d5a41554a7d93.patch";
|
|
|
|
hash = "sha256-iT7cB3ChWD1o0Zx7//Czkk8TaU1oTU1pRQWvPeIpeWY=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2022-06-26 10:26:21 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "oscpy" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A modern implementation of OSC for python2/3";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "oscli";
|
2022-06-26 10:26:21 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
homepage = "https://github.com/kivy/oscpy";
|
|
|
|
maintainers = [ maintainers.yurkobb ];
|
|
|
|
};
|
|
|
|
}
|