at 24.05-pre 959 B view raw
1{ lib, buildPythonPackage, fetchFromGitHub, fetchpatch, pytestCheckHook }: 2 3buildPythonPackage rec { 4 pname = "oscpy"; 5 version = "0.6.0"; 6 7 src = fetchFromGitHub { 8 owner = "kivy"; 9 repo = "oscpy"; 10 rev = "v${version}"; 11 hash = "sha256-Luj36JLgU9xbBMydeobyf98U5zs5VwWQOPGV7TPXQwA="; 12 }; 13 14 patches = [ 15 # Fix flaky tests with kivy/oscpy#67 - https://github.com/kivy/oscpy/pull/67 16 (fetchpatch { 17 name = "improve-reliability-of-test_intercept_errors.patch"; 18 url = "https://github.com/kivy/oscpy/commit/2bc114a97692aef28f8b84d52d0d5a41554a7d93.patch"; 19 hash = "sha256-iT7cB3ChWD1o0Zx7//Czkk8TaU1oTU1pRQWvPeIpeWY="; 20 }) 21 ]; 22 23 nativeCheckInputs = [ pytestCheckHook ]; 24 25 pythonImportsCheck = [ "oscpy" ]; 26 27 meta = with lib; { 28 description = "A modern implementation of OSC for python2/3"; 29 license = licenses.mit; 30 homepage = "https://github.com/kivy/oscpy"; 31 maintainers = [ maintainers.yurkobb ]; 32 }; 33}