home-assistant: support lightify component (#379007)
[NixPkgs.git] / pkgs / by-name / pr / pretix / plugins / passbook / package.nix
blobad0ae3febf62cbf6e1e682d76e749609cd2e3956
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   substituteAll,
7   # build-system
8   pretix-plugin-build,
9   setuptools,
11   # runtime
12   openssl,
14   # dependencies
15   googlemaps,
16   wallet-py3k,
19 buildPythonPackage rec {
20   pname = "pretix-passbook";
21   version = "1.13.2";
22   pyproject = true;
24   src = fetchFromGitHub {
25     owner = "pretix";
26     repo = "pretix-passbook";
27     rev = "v${version}";
28     hash = "sha256-rdX93AFoLLsA44a9sSgcQrCJiOlhe3j5WTBO+MHZ/X8=";
29   };
31   patches = [
32     (substituteAll {
33       src = ./openssl.patch;
34       openssl = lib.getExe openssl;
35     })
36   ];
38   build-system = [
39     pretix-plugin-build
40     setuptools
41   ];
43   dependencies = [
44     googlemaps
45     wallet-py3k
46   ];
48   doCheck = false; # no tests
50   pythonImportsCheck = [
51     "pretix_passbook"
52   ];
54   meta = with lib; {
55     description = "Support for Apple Wallet/Passbook files in pretix";
56     homepage = "https://github.com/pretix/pretix-passbook";
57     license = licenses.asl20;
58     maintainers = with maintainers; [ hexa ];
59   };