mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-14 17:23:57 +00:00
switched to Codeberg switched to finalAttrs switched to pythonRelaxDeps and pythonRemoveDeps
59 lines
1.1 KiB
Nix
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";
|
|
};
|
|
})
|