depot/third_party/nixpkgs/pkgs/development/python-modules/snap-helpers/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

52 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;
};
}