about summary refs log tree commit diff
path: root/nixpkgs/pkgs/by-name/pr/pretix/plugins/passbook.nix
blob: b7d380aa681d9b9e3d0c1e71e9ae264f04e36af3 (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
47
48
49
50
51
52
53
54
55
56
57
58
59
{ lib
, buildPythonPackage
, fetchFromGitHub
, substituteAll

# build-system
, pretix-plugin-build
, setuptools

# runtime
, openssl

# dependencies
, googlemaps
, wallet-py3k
}:

buildPythonPackage rec {
  pname = "pretix-passbook";
  version = "1.13.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "pretix";
    repo = "pretix-passbook";
    rev = "v${version}";
    hash = "sha256-bp64wCEMon05JhOaDr/cVbqUxc+7ndcsSuSesxJt8GE=";
  };

  patches = [
    (substituteAll {
      src = ./passbook-openssl.patch;
      openssl = lib.getExe openssl;
    })
  ];

  build-system = [
    pretix-plugin-build
    setuptools
  ];

  dependencies = [
    googlemaps
    wallet-py3k
  ];

  doCheck = false; # no tests

  pythonImportsCheck = [
    "pretix_passbook"
  ];

  meta = with lib; {
    description = "Support for Apple Wallet/Passbook files in pretix";
    homepage = "https://github.com/pretix/pretix-passbook";
    license = licenses.asl20;
    maintainers = with maintainers; [ hexa ];
  };
}