aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pybfd
diff options
context:
space:
mode:
authorOrivej Desh <orivej@gmx.fr>2017-11-19 08:30:14 +0000
committerOrivej Desh <orivej@gmx.fr>2017-11-19 08:30:14 +0000
commitb089c2150675f1e8bbcf5117b484b9047d44b3f8 (patch)
tree7fec2823f80ca5143013eda5175fc867eee6407c /pkgs/development/python-modules/pybfd
parentc76890f2fe24ca64bc216515149f7316080912f0 (diff)
parenta1573bbbb297f89af5ac26bb7141e1c4524d592c (diff)
Merge branch 'master' into staging
* master: (39 commits) python.pkgs.pybfd: move to python-modules documentation: python 2.6 is no more documentation: python3Packages is python36Packages wireguard: 0.0.20171101 -> 0.0.20171111 php_excel: init at 1.0.2 libxl: init at 3.8.1 matrix-synapse: 0.24.1 -> 0.25.1 grafana: 4.6.1 -> 4.6.2 linux: 4.4.98 -> 4.4.99 linux: 4.9.62 -> 4.9.63 linux: 4.13.13 -> 4.13.14 nixos/zsh: add the type for enableAutosuggestions option zsh-powerlevel9k: init at 2017-11-10 fio: 3.1 -> 3.2 filebench: rehash source nano: 2.8.7 -> 2.9.0 bonnie: replace dead source link less: 520 -> 529 strace: 4.19 -> 4.20 iperf: 3.2 -> 3.3 ...
Diffstat (limited to 'pkgs/development/python-modules/pybfd')
-rw-r--r--pkgs/development/python-modules/pybfd/default.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pybfd/default.nix b/pkgs/development/python-modules/pybfd/default.nix
new file mode 100644
index 00000000000..12f704d8037
--- /dev/null
+++ b/pkgs/development/python-modules/pybfd/default.nix
@@ -0,0 +1,25 @@
+{ lib, buildPythonPackage, isPyPy, isPy3k, fetchurl, gdb, libbfd }:
+
+buildPythonPackage rec {
+ name = "pybfd-0.1.1";
+
+ disabled = isPyPy || isPy3k;
+
+ src = fetchurl {
+ url = "mirror://pypi/p/pybfd/${name}.tar.gz";
+ sha256 = "d99b32ad077e704ddddc0b488c83cae851c14919e5cbc51715d00464a1932df4";
+ };
+
+ preConfigure = ''
+ substituteInPlace setup.py \
+ --replace '"/usr/include"' '"${gdb}/include"' \
+ --replace '"/usr/lib"' '"${libbfd}/lib"'
+ '';
+
+ meta = {
+ homepage = https://github.com/Groundworkstech/pybfd;
+ description = "A Python interface to the GNU Binary File Descriptor (BFD) library";
+ license = lib.licenses.gpl2;
+ platforms = lib.platforms.linux;
+ };
+}