blob: 6e8c8b7cff6b1d0518127e58d0f35f8b593c9612 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
{
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 ];
};
}
|