depot/third_party/nixpkgs/pkgs/development/python-modules/augeas/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

40 lines
946 B
Nix

{ lib
, stdenv
, 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;
};
}