1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 buildPythonPackage, 6 unittestCheckHook, 7 pkg-config, 8 augeas, 9 cffi, 10 pkgs, # for libxml2 11}: 12buildPythonPackage rec { 13 pname = "augeas"; 14 version = "1.2.0"; 15 format = "setuptools"; 16 17 src = fetchFromGitHub { 18 owner = "hercules-team"; 19 repo = "python-augeas"; 20 rev = "v${version}"; 21 hash = "sha256-Lq8ckra3sqN38zo1d5JsEq6U5TtLKRmqysoWNwR9J9A="; 22 }; 23 24 nativeBuildInputs = [ pkg-config ]; 25 26 buildInputs = [ 27 augeas 28 pkgs.libxml2 29 ]; 30 31 propagatedBuildInputs = [ cffi ]; 32 33 nativeCheckInputs = [ unittestCheckHook ]; 34 35 pythonImportsCheck = [ "augeas" ]; 36 37 meta = with lib; { 38 changelog = "https://github.com/hercules-team/python-augeas/releases/tag/v${version}"; 39 description = "Pure python bindings for augeas"; 40 homepage = "https://github.com/hercules-team/python-augeas"; 41 license = licenses.lgpl2Plus; 42 platforms = platforms.unix; 43 }; 44}