blob: fe208bb26a7898900c95cfd977ac757b1017b20f (
plain)
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 = {
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 = lib.licenses.lgpl2Plus;
platforms = lib.platforms.unix;
};
}
|