1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pytestCheckHook
5}:
6
7buildPythonPackage rec {
8 pname = "luhn";
9 version = "0.2.0";
10
11 src = fetchFromGitHub {
12 owner = "mmcloughlin";
13 repo = pname;
14 rev = version;
15 hash = "sha256-ZifaCjOVhWdXuzi5n6V+6eVN5vrEHKgUdpSOXoMyR18=";
16 };
17
18 nativeCheckInputs = [
19 pytestCheckHook
20 ];
21
22 pytestFlagsArray = [
23 "test.py"
24 ];
25
26 pythonImportsCheck = [
27 "luhn"
28 ];
29
30 meta = with lib; {
31 description = "Python module for generate and verify Luhn check digits";
32 homepage = "https://github.com/mmcloughlin/luhn";
33 license = with licenses; [ mit ];
34 maintainers = with maintainers; [ fab ];
35 };
36}