1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-24 10:56:56 +00:00
nixpkgs/pkgs/development/python-modules/augeas/default.nix
R. RyanTM 1bf7c848d1 python36Packages.augeas: 1.0.2 -> 1.0.3
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/python3.6-augeas/versions
2018-10-24 20:06:30 +02:00

35 lines
979 B
Nix

{ stdenv, lib, buildPythonPackage, fetchFromGitHub, augeas, cffi }:
buildPythonPackage rec {
pname = "augeas";
version = "1.0.3";
name = pname + "-" + version;
src = fetchFromGitHub {
owner = "hercules-team";
repo = "python-augeas";
rev = "v${version}";
sha256 = "1fb904ym8g8hkd82zlibzk6wrldnfd5v5d0rkynsy1zlhcylq4f6";
};
# TODO: not very nice!
postPatch =
let libname = if stdenv.isDarwin then "libaugeas.dylib" else "libaugeas.so";
in
''
substituteInPlace augeas/ffi.py \
--replace 'ffi.dlopen("augeas")' \
'ffi.dlopen("${lib.makeLibraryPath [augeas]}/${libname}")'
'';
propagatedBuildInputs = [ cffi augeas ];
doCheck = false;
meta = with lib; {
description = "Pure python bindings for augeas";
homepage = https://github.com/hercules-team/python-augeas;
license = licenses.lgpl2Plus;
platforms = platforms.unix;
};
}