504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
37 lines
696 B
Nix
37 lines
696 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "luhn";
|
|
version = "0.2.0";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mmcloughlin";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-ZifaCjOVhWdXuzi5n6V+6eVN5vrEHKgUdpSOXoMyR18=";
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pytestFlagsArray = [
|
|
"test.py"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"luhn"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python module for generate and verify Luhn check digits";
|
|
homepage = "https://github.com/mmcloughlin/luhn";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|