python3Packages.luhn: init at 0.2.0

This commit is contained in:
Fabian Affolter 2021-12-11 22:07:11 +01:00
parent 5e4feb3c2d
commit 982ebfa2b8
2 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,36 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "luhn";
version = "0.2.0";
src = fetchFromGitHub {
owner = "mmcloughlin";
repo = pname;
rev = version;
sha256 = "sha256-ZifaCjOVhWdXuzi5n6V+6eVN5vrEHKgUdpSOXoMyR18=";
};
checkInputs = [
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 ];
};
}

View File

@ -4609,6 +4609,8 @@ in {
luftdaten = callPackage ../development/python-modules/luftdaten { };
luhn = callPackage ../development/python-modules/luhn { };
luxor = callPackage ../development/python-modules/luxor { };
luxtronik = callPackage ../development/python-modules/luxtronik { };