depot/third_party/nixpkgs/pkgs/development/python-modules/snap-helpers/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

46 lines
1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
nix-update-script,
pyyaml,
setuptools,
pytestCheckHook,
pytest-mock,
}:
buildPythonPackage rec {
pname = "snap-helpers";
version = "0.4.2";
pyproject = true;
src = fetchFromGitHub {
owner = "albertodonato";
repo = "snap-helpers";
rev = "refs/tags/${version}";
hash = "sha256-7JBvrD4WNOcFSVx3xauk4JgiVGKWuUEdUMRlH7mudE4=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [ pyyaml ];
pythonImportsCheck = [ "snaphelpers" ];
nativeCheckInputs = [
pytest-mock
pytestCheckHook
];
passthru.updateScript = nix-update-script { };
meta = {
description = "Interact with snap configuration and properties from inside a snap";
homepage = "https://github.com/albertodonato/snap-helpers";
changelog = "https://github.com/albertodonato/snap-helpers/releases/tag/${version}";
license = lib.licenses.lgpl3Only;
maintainers = with lib.maintainers; [ jnsgruk ];
platforms = lib.platforms.linux;
};
}