Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at gcc-offload 64 lines 1.2 kB view raw
1{ 2 lib, 3 stdenv, 4 buildPythonPackage, 5 fetchPypi, 6 setuptools, 7 setuptools-scm, 8 autoPatchelfHook, 9 udev, 10 pytestCheckHook, 11}: 12 13buildPythonPackage rec { 14 pname = "libuuu"; 15 version = "1.5.182"; 16 pyproject = true; 17 18 src = fetchPypi { 19 inherit pname version; 20 hash = "sha256-k6JwGxYeFbGNl7zcuKN6SbRq8Z4yD1dXXL3ORyGqhYE="; 21 }; 22 23 build-system = [ 24 setuptools 25 setuptools-scm 26 ]; 27 28 nativeBuildInputs = lib.optionals stdenv.isLinux [ 29 autoPatchelfHook 30 ]; 31 32 buildInputs = lib.optionals stdenv.isLinux [ 33 udev 34 ]; 35 36 dependencies = [ 37 setuptools-scm 38 ]; 39 40 pythonImportsCheck = [ 41 "libuuu" 42 ]; 43 44 # Prevent tests to load the plugin from the source files instead of the installed ones 45 preCheck = '' 46 rm -rf libuuu 47 ''; 48 49 nativeCheckInputs = [ 50 pytestCheckHook 51 ]; 52 53 meta = { 54 description = "Python wrapper for libuuu"; 55 homepage = "https://github.com/nxp-imx/mfgtools/tree/master/wrapper"; 56 license = lib.licenses.bsd3; 57 maintainers = with lib.maintainers; [ GaetanLepage ]; 58 badPlatforms = [ 59 # The pypi archive does not contain the pre-built library for these platforms 60 "aarch64-linux" 61 "x86_64-darwin" 62 ]; 63 }; 64}