evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / snap-helpers / default.nix
bloba1a9ef70c1888eea19d205dba6a349fac1a7b23a
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   nix-update-script,
6   pyyaml,
7   setuptools,
8   pytestCheckHook,
9   pytest-mock,
12 buildPythonPackage rec {
13   pname = "snap-helpers";
14   version = "0.4.2";
16   pyproject = true;
18   src = fetchFromGitHub {
19     owner = "albertodonato";
20     repo = "snap-helpers";
21     rev = "refs/tags/${version}";
22     hash = "sha256-7JBvrD4WNOcFSVx3xauk4JgiVGKWuUEdUMRlH7mudE4=";
23   };
25   nativeBuildInputs = [ setuptools ];
27   propagatedBuildInputs = [ pyyaml ];
29   pythonImportsCheck = [ "snaphelpers" ];
31   nativeCheckInputs = [
32     pytest-mock
33     pytestCheckHook
34   ];
36   passthru.updateScript = nix-update-script { };
38   meta = {
39     description = "Interact with snap configuration and properties from inside a snap";
40     homepage = "https://github.com/albertodonato/snap-helpers";
41     changelog = "https://github.com/albertodonato/snap-helpers/releases/tag/${version}";
42     license = lib.licenses.lgpl3Only;
43     maintainers = with lib.maintainers; [ jnsgruk ];
44     platforms = lib.platforms.linux;
45   };