mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-04 22:10:14 +00:00
60 lines
1002 B
Nix
60 lines
1002 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
replaceVars,
|
|
|
|
# build-system
|
|
pretix-plugin-build,
|
|
setuptools,
|
|
|
|
# runtime
|
|
openssl,
|
|
|
|
# dependencies
|
|
googlemaps,
|
|
wallet-py3k,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pretix-passbook";
|
|
version = "1.14.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pretix";
|
|
repo = "pretix-passbook";
|
|
rev = "v${version}";
|
|
hash = "sha256-cTXgDr845TGMGWr9bSaFvRPQ0GynXn3CVnZxcf96orc=";
|
|
};
|
|
|
|
patches = [
|
|
(replaceVars ./openssl.patch {
|
|
openssl = lib.getExe openssl;
|
|
})
|
|
];
|
|
|
|
build-system = [
|
|
pretix-plugin-build
|
|
setuptools
|
|
];
|
|
|
|
dependencies = [
|
|
googlemaps
|
|
wallet-py3k
|
|
];
|
|
|
|
doCheck = false; # no tests
|
|
|
|
pythonImportsCheck = [
|
|
"pretix_passbook"
|
|
];
|
|
|
|
meta = {
|
|
description = "Support for Apple Wallet/Passbook files in pretix";
|
|
homepage = "https://github.com/pretix/pretix-passbook";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ hexa ];
|
|
};
|
|
}
|