mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 14:16:35 +01:00
41 lines
1,018 B
Nix
41 lines
1,018 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
fetchpatch,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "oscpy";
|
|
version = "0.6.1";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kivy";
|
|
repo = "oscpy";
|
|
tag = "v${version}";
|
|
hash = "sha256-sumpJ2y9lpd0UhQjk4zVDp3SipBwh3NBkJ3dqWs18IE=";
|
|
};
|
|
|
|
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=";
|
|
})
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "oscpy" ];
|
|
|
|
meta = {
|
|
description = "Modern implementation of OSC for python2/3";
|
|
mainProgram = "oscli";
|
|
license = lib.licenses.mit;
|
|
homepage = "https://github.com/kivy/oscpy";
|
|
maintainers = [ lib.maintainers.yurkobb ];
|
|
};
|
|
}
|