depot/third_party/nixpkgs/pkgs/development/python-modules/luhn/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

32 lines
684 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 ];
};
}