nixpkgs/pkgs/development/python-modules/luhn/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
696 B
Nix
Raw Normal View History

2021-12-11 21:07:11 +00:00
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "luhn";
version = "0.2.0";
format = "setuptools";
2021-12-11 21:07:11 +00:00
src = fetchFromGitHub {
owner = "mmcloughlin";
repo = pname;
rev = version;
hash = "sha256-ZifaCjOVhWdXuzi5n6V+6eVN5vrEHKgUdpSOXoMyR18=";
2021-12-11 21:07:11 +00:00
};
nativeCheckInputs = [
2021-12-11 21:07:11 +00:00
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 ];
};
}