Skip to content

Instantly share code, notes, and snippets.

@cptMikky cptMikky/cmdline
Last active Nov 11, 2019

Embed
What would you like to do?
mikky@node ~ % nix-shell -p python37Full python37Packages.ovirt-engine-sdk
these derivations will be built:
/nix/store/8cz1zlngqqr09zcc73qhs4hygifgphi7-meson-0.51.2.drv
/nix/store/vldgacdxq3l8a38dp0kwgzy7ipxl5cyc-xorgproto-2019.1.drv
/nix/store/2vfq5qr9idl3yr711964zmpacavhs248-libXau-1.0.9.drv
/nix/store/nhxm74jfxxp7kar82hj6hxsqn3qbyhzj-libXdmcp-1.1.3.drv
/nix/store/1bvkzn9fd9a7bqwjj4vhwvjnizz0cj1s-libxcb-1.13.1.drv
/nix/store/i4i5ncq6v474drfgmj1nz16f5ig94lpx-libX11-1.6.8.drv
/nix/store/0nn17kj6z3n55lrzdvfld34248wslqv3-libXext-1.3.4.drv
/nix/store/azkf3z7brfpy3kd7wgvvn5ciq1irapl4-libXrender-0.9.10.drv
/nix/store/nmv5qramd2cl84lss5kds5qrg520ldxq-gtk-doc-1.32.drv
/nix/store/kkf5jfjchrsqqhfsanp0pp0l0gm5mfh7-glib-2.62.1.drv
/nix/store/d68vv3vlhgvzwb8286wcnalv5ym3zs79-fontforge-20190413.drv
/nix/store/fwnyz7p0s0b9xr0rlfs4pdgy23ncxjjl-dejavu-fonts-full-2.37.drv
/nix/store/dn9cynlrdl4ni8gl9cfnzhfklms8w0r8-dejavu-fonts-minimal-2.37.drv
/nix/store/xdpsk351c7v7mwlrrv20ljzhk8h53gqj-fontconfig-2.12.6.drv
/nix/store/bb04sc1cabjhm3cbzz6czz4f474a3l4z-libXft-2.3.3.drv
/nix/store/ll09h27as4gzb9h6vd6x85yazdwgpvjh-tk-8.6.9.drv
/nix/store/6vjik5brjw9sslywx6bhxdn6vlm4iri3-tix-8.4.3.drv
/nix/store/s72mkf4a6m621la99y9fg88a5z1sjcg6-libICE-1.0.10.drv
/nix/store/8w1riw9cpzyg2pjp6c1j00j4r8gdff9d-libSM-1.2.3.drv
/nix/store/j5f6lhw0myc1p2j7k7l2znv7zdfaidy9-libXt-1.2.0.drv
/nix/store/a1ckj1rcbbnjpgfcbbac3wchg888kcjy-xlibs-wrapper.drv
/nix/store/7gfn4a9jim5jiw0ppfsf33l98qwmr885-python-2.7.17.drv
building '/nix/store/8cz1zlngqqr09zcc73qhs4hygifgphi7-meson-0.51.2.drv'...
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing setuptools-build-hook
Using setuptoolsBuildPhase
Using setuptoolsShellHook
Sourcing pip-install-hook
Using pipInstallPhase
Sourcing python-imports-check-hook.sh
Using pythonImportsCheckPhase
unpacking sources
unpacking source archive /nix/store/dz3cgm9fxywjb59wl4g1xj1kmliyaqz7-meson-0.51.2.tar.gz
source root is meson-0.51.2
setting SOURCE_DATE_EPOCH to timestamp 1567012506 of file meson-0.51.2/setup.cfg
patching sources
applying patch /nix/store/7qxgp0jj3hl8w873skc21c6grnvhlbzm-allow-dirs-outside-of-prefix.patch
patching file mesonbuild/coredata.py
Hunk #1 succeeded at 468 (offset 93 lines).
applying patch /nix/store/2kav2fyp7mdfg48fd1j9hcscv7pqcbak-gir-fallback-path.patch
patching file mesonbuild/modules/gnome.py
Hunk #1 succeeded at 817 with fuzz 2 (offset 12 lines).
applying patch /nix/store/acs59vr0n4fk54g3igkfdrxh2g63gmhr-fix-rpath.patch
patching file mesonbuild/compilers/compilers.py
Hunk #1 succeeded at 1298 (offset 96 lines).
patching file mesonbuild/scripts/depfixer.py
configuring
no configure script, doing nothing
building
Executing setuptoolsBuildPhase
Tried to install with an unsupported version of Python. Meson requires Python 3.5.0 or greater
builder for '/nix/store/8cz1zlngqqr09zcc73qhs4hygifgphi7-meson-0.51.2.drv' failed with exit code 1
cannot build derivation '/nix/store/kkf5jfjchrsqqhfsanp0pp0l0gm5mfh7-glib-2.62.1.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/vldgacdxq3l8a38dp0kwgzy7ipxl5cyc-xorgproto-2019.1.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/i4i5ncq6v474drfgmj1nz16f5ig94lpx-libX11-1.6.8.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/bb04sc1cabjhm3cbzz6czz4f474a3l4z-libXft-2.3.3.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/a1ckj1rcbbnjpgfcbbac3wchg888kcjy-xlibs-wrapper.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/7gfn4a9jim5jiw0ppfsf33l98qwmr885-python-2.7.17.drv': 1 dependencies couldn't be built
error: build of '/nix/store/7gfn4a9jim5jiw0ppfsf33l98qwmr885-python-2.7.17.drv' failed
{
"/nix/store/8cz1zlngqqr09zcc73qhs4hygifgphi7-meson-0.51.2.drv": {
"outputs": {
"out": {
"path": "/nix/store/87byhqcyj62dyxi02fzmibawiabxsgiy-meson-0.51.2"
}
},
"inputSrcs": [
"/nix/store/2kav2fyp7mdfg48fd1j9hcscv7pqcbak-gir-fallback-path.patch",
"/nix/store/7qxgp0jj3hl8w873skc21c6grnvhlbzm-allow-dirs-outside-of-prefix.patch",
"/nix/store/9krlzvny65gdc8s7kpb6lkx8cd02c25b-default-builder.sh",
"/nix/store/llmz92v36wbawzlxr0r52br47vgc0vjc-setup-hook.sh"
],
"inputDrvs": {
"/nix/store/62bdk89lh6llvcjzr6yiqxlvs9sn47lh-python-remove-bin-bytecode-hook.drv": [
"out"
],
"/nix/store/8yzvq5nz0j48ghr3iydr9lc9gzk01869-setuptools-setup-hook.drv": [
"out"
],
"/nix/store/arrawaxl4kcbn052g7v00mmhnbcczx4v-gcc-wrapper-8.3.0.drv": [
"out"
],
"/nix/store/ba8vz9lfnkwzg1sxf3i7xclpgm4pfhx6-python2.7-setuptools-41.4.0.drv": [
"out"
],
"/nix/store/bj16bxwksvyqb1nzgmqqzwg3rhhsd1ih-fix-rpath.patch.drv": [
"out"
],
"/nix/store/gjk1dh29vvcq737y3bmcy40l9gnpiqab-python-2.7.17.drv": [
"out"
],
"/nix/store/iaf97sxpalhl51rqvn411bqp3lj1dpm3-meson-0.51.2.tar.gz.drv": [
"out"
],
"/nix/store/imcqh2g5rskssnww3l72wa19lm77r8z5-pip-install-hook.drv": [
"out"
],
"/nix/store/ipl8bhnw6n9lhsmrqmn22c2dpa4sgc6y-stdenv-linux.drv": [
"out"
],
"/nix/store/j2bkb070y3h2in84kj70jnrx8vralj7z-cross-file.conf.drv": [
"out"
],
"/nix/store/jarblypmp5c2888m1ysq9g1j7pw7kpqk-python-catch-conflicts-hook.drv": [
"out"
],
"/nix/store/lashjc2icssh2g6f6frjkqk3ijk7q965-bash-4.4-p23.drv": [
"out"
],
"/nix/store/p067pqs3jcv2b4zv10cpw4bhwb2gjxqn-python-imports-check-hook.sh.drv": [
"out"
],
"/nix/store/vvc30ndy23w9bmcpljr0kiap3419kkc1-hook.drv": [
"out"
],
"/nix/store/zmdspp57vq407pcjmkkikh6y70dwxll7-hook.drv": [
"out"
]
},
"platform": "x86_64-linux",
"builder": "/nix/store/zavn4np1jvm79f0rafkv0p1mrag09qkz-bash-4.4-p23/bin/bash",
"args": [
"-e",
"/nix/store/9krlzvny65gdc8s7kpb6lkx8cd02c25b-default-builder.sh"
],
"env": {
"LANG": "C.UTF-8",
"buildInputs": "",
"builder": "/nix/store/zavn4np1jvm79f0rafkv0p1mrag09qkz-bash-4.4-p23/bin/bash",
"cc": "/nix/store/5yyx688q9qxhb4ypawq7v80fm3ix27dm-gcc-wrapper-8.3.0",
"configureFlags": "",
"crossFile": "/nix/store/waw6k6k42xjd21fagjyxl540vg9lsg63-cross-file.conf",
"depsBuildBuild": "",
"depsBuildBuildPropagated": "",
"depsBuildTarget": "",
"depsBuildTargetPropagated": "",
"depsHostHost": "",
"depsHostHostPropagated": "",
"depsTargetTarget": "",
"depsTargetTargetPropagated": "",
"disallowedReferences": "",
"doCheck": "",
"doInstallCheck": "",
"isCross": "",
"name": "meson-0.51.2",
"nativeBuildInputs": "/nix/store/bzf8x5kpv3x4qi09xq2grnvccakvy7gz-python-2.7.17 /nix/store/7g8jah20v5kzmxir83gwgyjskcs00fnk-hook /nix/store/aq0baib0bydzh5344zizzcl76a0g2sy0-hook /nix/store/8dzyxywhxb65w1033nvk6vkky6z9zna1-python2.7-setuptools-41.4.0 /nix/store/y6srf0lyg9vv0brwsik94491yc2sabyd-python-catch-conflicts-hook /nix/store/m1lx91ghbp7mkgz7n7chgyrq96ph7h9s-python-remove-bin-bytecode-hook /nix/store/y9mwmgcp99kbhkp21pjidcbpgmydkvli-setuptools-setup-hook /nix/store/szb4nyzv0hskgqyz1j16540xr6x9g930-pip-install-hook /nix/store/cf3j20lsvssvyp1bydl315fy7f05hmi3-python-imports-check-hook.sh",
"out": "/nix/store/87byhqcyj62dyxi02fzmibawiabxsgiy-meson-0.51.2",
"outputs": "out",
"patches": "/nix/store/7qxgp0jj3hl8w873skc21c6grnvhlbzm-allow-dirs-outside-of-prefix.patch /nix/store/2kav2fyp7mdfg48fd1j9hcscv7pqcbak-gir-fallback-path.patch /nix/store/acs59vr0n4fk54g3igkfdrxh2g63gmhr-fix-rpath.patch",
"pname": "meson",
"postFixup": "wrapPythonPrograms\npushd $out/bin\n# undo shell wrapper as meson tools are called with python\nfor i in *; do\n mv \".$i-wrapped\" \"$i\"\ndone\npopd\n\n# Do not propagate Python\nrm $out/nix-support/propagated-build-inputs\n",
"propagatedBuildInputs": "/nix/store/bzf8x5kpv3x4qi09xq2grnvccakvy7gz-python-2.7.17",
"propagatedNativeBuildInputs": "",
"setupHook": "/nix/store/llmz92v36wbawzlxr0r52br47vgc0vjc-setup-hook.sh",
"src": "/nix/store/dz3cgm9fxywjb59wl4g1xj1kmliyaqz7-meson-0.51.2.tar.gz",
"stdenv": "/nix/store/kirg08m7yzlp226q7ki61q9j5zjf1x9p-stdenv-linux",
"strictDeps": "1",
"system": "x86_64-linux",
"version": "0.51.2"
}
}
}
self: super: {
python37 = super.python.override {
packageOverrides = python-self: python-super: {
ovirt-engine-sdk = python-super.callPackage /home/mikky/git/github/cptMikky/nixpkgs/pkgs/development/python-modules/ovirt-engine-sdk {};
};
};
}
{ lib, buildPythonPackage, fetchPypi, pkgs }:
buildPythonPackage rec {
pname = "ovirt-engine-sdk-python";
version = "4.3.3";
src = fetchPypi {
inherit pname version;
sha256 = "0hz7rcz7l391n8ixcwvqw3iq5bx26fk9l5c6xxymv036zm3r9pnh";
};
doCheck = false;
buildInputs = with pkgs.python37Packages; [
pycurl
six
enum34
pkgs.libxml2
];
prePatch = ''
substituteInPlace setup.py --replace "/usr/include/libxml2" "${pkgs.libxml2.dev}/include/libxml2"
'';
meta = with lib; {
homepage = https://github.com/oVirt/ovirt-engine-sdk/;
description = "The oVirt Python-SDK is a software development kit for the oVirt engine API.";
license = licenses.gpl3;
maintainers = with maintainers; [ cptMikky ];
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.