Merge pull request #173436 from lopsided98/btrfs-progs-python

btrfs-progs: install Python bindings
main
7c6f434c 2 years ago committed by GitHub
commit 3f13f71406
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      pkgs/tools/filesystems/btrfs-progs/default.nix
  2. 2
      pkgs/top-level/python-packages.nix

@ -23,9 +23,6 @@ stdenv.mkDerivation rec {
buildInputs = [ acl attr e2fsprogs libuuid lzo python3 zlib zstd ] ++ lib.optionals stdenv.hostPlatform.isGnu [ udev ];
# for python cross-compiling
_PYTHON_HOST_PLATFORM = stdenv.hostPlatform.config;
# gcc bug with -O1 on ARM with gcc 4.8
# This should be fine on all platforms so apply universally
postPatch = "sed -i s/-O1/-O2/ configure";
@ -38,6 +35,8 @@ stdenv.mkDerivation rec {
makeFlags = lib.optionals stdenv.hostPlatform.isGnu [ "udevruledir=$(out)/lib/udev/rules.d" ];
installFlags = [ "install_python" ];
enableParallelBuilding = true;
passthru.tests = {

@ -1405,6 +1405,8 @@ in {
btrfs = callPackage ../development/python-modules/btrfs { };
btrfsutil = toPythonModule (pkgs.btrfs-progs.override { python3 = self.python; });
bugsnag = callPackage ../development/python-modules/bugsnag { };
bugwarrior = callPackage ../development/python-modules/bugwarrior { };

Loading…
Cancel
Save