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