about summary refs log tree commit diff
path: root/pkgs/development/python-modules/augeas/default.nix
blob: 6154b82465b9c3f248d25b2eedfd691f73a5b672 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{
  lib,
  fetchFromGitHub,
  buildPythonPackage,
  unittestCheckHook,
  pkg-config,
  augeas,
  cffi,
  pkgs, # for libxml2
}:
buildPythonPackage rec {
  pname = "augeas";
  version = "1.2.0";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "hercules-team";
    repo = "python-augeas";
    rev = "v${version}";
    hash = "sha256-Lq8ckra3sqN38zo1d5JsEq6U5TtLKRmqysoWNwR9J9A=";
  };

  nativeBuildInputs = [ pkg-config ];

  buildInputs = [
    augeas
    pkgs.libxml2
  ];

  propagatedBuildInputs = [ cffi ];

  nativeCheckInputs = [ unittestCheckHook ];

  pythonImportsCheck = [ "augeas" ];

  meta = with lib; {
    changelog = "https://github.com/hercules-team/python-augeas/releases/tag/v${version}";
    description = "Pure python bindings for augeas";
    homepage = "https://github.com/hercules-team/python-augeas";
    license = licenses.lgpl2Plus;
    platforms = platforms.unix;
  };
}