pytrainer: unpin python 3.10
[NixPkgs.git] / pkgs / development / python-modules / oscpy / default.nix
blob9889b746405a2a81895a37ced90d4374758b543b
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   fetchpatch,
6   pytestCheckHook,
7 }:
9 buildPythonPackage rec {
10   pname = "oscpy";
11   version = "0.6.0";
12   format = "setuptools";
14   src = fetchFromGitHub {
15     owner = "kivy";
16     repo = "oscpy";
17     rev = "v${version}";
18     hash = "sha256-Luj36JLgU9xbBMydeobyf98U5zs5VwWQOPGV7TPXQwA=";
19   };
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   ];
30   nativeCheckInputs = [ pytestCheckHook ];
32   pythonImportsCheck = [ "oscpy" ];
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   };