Files
nixpkgs/pkgs/development/python-modules/libuuu/default.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

69 lines
1.2 KiB
Nix

{
lib,
stdenv,
buildPythonPackage,
fetchPypi,
setuptools,
setuptools-scm,
autoPatchelfHook,
udev,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "libuuu";
version = "1.5.233";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-SbnQs+khNT1DwrctwHi0rsuO1WR/KgA7TUFARw9AHAU=";
};
build-system = [
setuptools
setuptools-scm
];
nativeBuildInputs = lib.optionals stdenv.hostPlatform.isLinux [
autoPatchelfHook
];
buildInputs = lib.optionals stdenv.hostPlatform.isLinux [
udev
];
pythonRelaxDeps = [
"setuptools-scm"
];
dependencies = [
setuptools-scm
];
pythonImportsCheck = [
"libuuu"
];
# Prevent tests to load the plugin from the source files instead of the installed ones
preCheck = ''
rm -rf libuuu
'';
nativeCheckInputs = [
pytestCheckHook
];
meta = {
description = "Python wrapper for libuuu";
homepage = "https://github.com/nxp-imx/mfgtools/tree/master/wrapper";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ GaetanLepage ];
badPlatforms = [
# The pypi archive does not contain the pre-built library for these platforms
"aarch64-linux"
"x86_64-darwin"
];
};
}