python312Packages.libuuu: init at 1.5.82
This commit is contained in:
parent
8fc978774f
commit
7413190665
64
pkgs/development/python-modules/libuuu/default.nix
Normal file
64
pkgs/development/python-modules/libuuu/default.nix
Normal file
@ -0,0 +1,64 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
buildPythonPackage,
|
||||
fetchPypi,
|
||||
setuptools,
|
||||
setuptools-scm,
|
||||
autoPatchelfHook,
|
||||
pytestCheckHook,
|
||||
udev,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "libuuu";
|
||||
version = "1.5.182";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-k6JwGxYeFbGNl7zcuKN6SbRq8Z4yD1dXXL3ORyGqhYE=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
setuptools
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
nativeBuildInputs = lib.optionals stdenv.isLinux [
|
||||
autoPatchelfHook
|
||||
];
|
||||
|
||||
buildInputs = lib.optionals stdenv.isLinux [
|
||||
udev
|
||||
];
|
||||
|
||||
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 wraper 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"
|
||||
];
|
||||
};
|
||||
}
|
@ -7348,6 +7348,8 @@ self: super: with self; {
|
||||
inherit (pkgs) libusbsio;
|
||||
};
|
||||
|
||||
libuuu = callPackage ../development/python-modules/libuuu { };
|
||||
|
||||
libversion = callPackage ../development/python-modules/libversion {
|
||||
inherit (pkgs) libversion;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user