mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 15:22:59 +01:00
python3Packages.luhn: init at 0.2.0
This commit is contained in:
parent
5e4feb3c2d
commit
982ebfa2b8
2 changed files with 38 additions and 0 deletions
36
pkgs/development/python-modules/luhn/default.nix
Normal file
36
pkgs/development/python-modules/luhn/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -4609,6 +4609,8 @@ in {
|
||||||
|
|
||||||
luftdaten = callPackage ../development/python-modules/luftdaten { };
|
luftdaten = callPackage ../development/python-modules/luftdaten { };
|
||||||
|
|
||||||
|
luhn = callPackage ../development/python-modules/luhn { };
|
||||||
|
|
||||||
luxor = callPackage ../development/python-modules/luxor { };
|
luxor = callPackage ../development/python-modules/luxor { };
|
||||||
|
|
||||||
luxtronik = callPackage ../development/python-modules/luxtronik { };
|
luxtronik = callPackage ../development/python-modules/luxtronik { };
|
||||||
|
|
Loading…
Reference in a new issue