18 stdenv.mkDerivation (finalAttrs: {
19 pname = "libbytesize";
22 src = fetchFromGitHub {
23 owner = "storaged-project";
25 rev = finalAttrs.version;
26 hash = "sha256-scOnucn7xp6KKEtkpwfyrdzcntJF2l0h0fsQotcceLc=";
44 python3Packages.python
47 nativeInstallCheckInputs = [
48 python3Packages.pythonImportsCheckHook
57 doInstallCheck = true;
61 substituteInPlace $out/${python3Packages.python.sitePackages}/bytesize/bytesize.py \
62 --replace-fail 'CDLL("libbytesize.so.1")' "CDLL('$out/lib/libbytesize.so.1')"
65 pythonImportsCheck = [ "bytesize" ];
68 homepage = "https://github.com/storaged-project/libbytesize";
69 description = "Tiny library providing a C 'class' for working with arbitrary big sizes in bytes";
70 license = lib.licenses.lgpl2Plus;
71 mainProgram = "bscalc";
72 maintainers = with lib.maintainers; [ AndersonTorres ];
73 platforms = lib.platforms.linux;