Something went wrong. Try again.
lol
Something went wrong. Try again.
683 B · 32 lines
Nix
at master
123456789101112131415161718192021222324252627282930313233{ lib, buildPythonPackage, fetchFromGitHub, pytestCheckHook,}:
buildPythonPackage rec { pname = "luhn"; version = "0.2.0"; format = "setuptools";
src = fetchFromGitHub { owner = "mmcloughlin"; repo = "luhn"; rev = version; hash = "sha256-ZifaCjOVhWdXuzi5n6V+6eVN5vrEHKgUdpSOXoMyR18="; };
nativeCheckInputs = [ pytestCheckHook ];
enabledTestPaths = [ "test.py" ];
pythonImportsCheck = [ "luhn" ];
meta = { description = "Python module for generate and verify Luhn check digits"; homepage = "https://github.com/mmcloughlin/luhn"; license = with lib.licenses; [ mit ]; maintainers = with lib.maintainers; [ fab ]; };}