Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / augeas / default.nix
blob48c5e723bc4c1b9418b3a03966c0f3d7600fba78
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , buildPythonPackage
5 , unittestCheckHook
6 , pkg-config
7 , augeas
8 , cffi
9 , pkgs # for libxml2
11 buildPythonPackage rec {
12     pname = "augeas";
13     version = "1.2.0";
14     format = "setuptools";
16     src = fetchFromGitHub {
17       owner = "hercules-team";
18       repo = "python-augeas";
19       rev = "v${version}";
20       hash = "sha256-Lq8ckra3sqN38zo1d5JsEq6U5TtLKRmqysoWNwR9J9A=";
21     };
23     nativeBuildInputs = [ pkg-config ];
25     buildInputs = [ augeas pkgs.libxml2 ];
27     propagatedBuildInputs = [ cffi ];
29     nativeCheckInputs = [ unittestCheckHook ];
31     pythonImportsCheck = [ "augeas" ];
33     meta = with lib; {
34       changelog = "https://github.com/hercules-team/python-augeas/releases/tag/v${version}";
35       description = "Pure python bindings for augeas";
36       homepage = "https://github.com/hercules-team/python-augeas";
37       license = licenses.lgpl2Plus;
38       platforms = platforms.unix;
39     };