blob: 7470baa097c9fbbab0a0b1b2393cc711176f22ac (
plain) (
blame)
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
44
45
46
|
{
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;
};
}
|