evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / segno / default.nix
blobd87b902458fee7c8f7548de1e8e8266498f59311
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pythonOlder,
7   # build-system
8   flit-core,
10   # dependencies
11   importlib-metadata,
13   # tests
14   pytestCheckHook,
15   pypng,
16   pyzbar,
19 buildPythonPackage rec {
20   pname = "segno";
21   version = "1.6.1";
22   pyproject = true;
24   src = fetchFromGitHub {
25     owner = "heuer";
26     repo = "segno";
27     rev = "refs/tags/${version}";
28     hash = "sha256-5CDrQhbgUydz1ORp4ktZwhcgbJxQq1snKIAA0v4mZ00=";
29   };
31   nativeBuildInputs = [ flit-core ];
33   propagatedBuildInputs = lib.optionals (pythonOlder "3.10") [ importlib-metadata ];
35   nativeCheckInputs = [
36     pytestCheckHook
37     pypng
38     pyzbar
39   ];
41   disabledTests = [
42     # https://github.com/heuer/segno/issues/132
43     "test_plugin"
44   ];
46   pythonImportsCheck = [ "segno" ];
48   meta = with lib; {
49     changelog = "https://github.com/heuer/segno/releases/tag/${version}";
50     description = "QR Code and Micro QR Code encoder";
51     mainProgram = "segno";
52     homepage = "https://github.com/heuer/segno/";
53     license = licenses.bsd3;
54     maintainers = with maintainers; [ phaer ];
55   };