Files
nixpkgs/pkgs/development/python-modules/emv/default.nix
Letgamer 003406ee9c python3Packages.emv: refactored code
switched to Codeberg
switched to finalAttrs
switched to pythonRelaxDeps and pythonRemoveDeps
2026-04-12 16:08:39 +02:00

59 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromCodeberg,
click,
pyscard,
pycountry,
terminaltables,
pytestCheckHook,
setuptools,
}:
buildPythonPackage (finalAttrs: {
pname = "emv";
version = "1.0.14";
pyproject = true;
src = fetchFromCodeberg {
owner = "russss";
repo = "python-emv";
tag = "v${finalAttrs.version}";
hash = "sha256-MnaeQZ0rA3i0CoUA6HgJQpwk5yo4rm9e+pc5XzRd1eg=";
};
pythonRelaxDeps = [
"click"
"pyscard"
"pycountry"
"terminaltables"
];
pythonRemoveDeps = [
"enum-compat"
"argparse"
];
build-system = [ setuptools ];
dependencies = [
click
pyscard
pycountry
terminaltables
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "emv" ];
meta = {
description = "Implementation of the EMV chip-and-pin smartcard protocol";
homepage = "https://codeberg.org/russss/python-emv/";
changelog = "https://codeberg.org/russss/python-emv/releases/tag/v${finalAttrs.version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ lukegb ];
mainProgram = "emvtool";
};
})