git.iko.soy/typeable/nixpkgs
on master help sign in
python3Packages.luhn: init at 0.2.0
commit982ebfa2b8c59b870f857d34ff87f5dba1f8ba4b authorFabian Affolter <mail@fabian-affolter.ch> dateSat 11 Dec 2021, 22:07 (5 years ago) parent5e4feb3
2 files changed+38
pkgs/development/python-modules/luhn/default.nix+36 pkgs/top-level/python-packages.nix+2
pkgs/development/python-modules/luhn/default.nixnew file+36
@@ -0,0 +1,36 @@
1+{ lib
2+, buildPythonPackage
3+, fetchFromGitHub
4+, pytestCheckHook
5+}:
6+
7+buildPythonPackage rec {
8+ pname = "luhn";
9+ version = "0.2.0";
10+
11+ src = fetchFromGitHub {
12+ owner = "mmcloughlin";
13+ repo = pname;
14+ rev = version;
15+ sha256 = "sha256-ZifaCjOVhWdXuzi5n6V+6eVN5vrEHKgUdpSOXoMyR18=";
16+ };
17+
18+ checkInputs = [
19+ pytestCheckHook
20+ ];
21+
22+ pytestFlagsArray = [
23+ "test.py"
24+ ];
25+
26+ pythonImportsCheck = [
27+ "luhn"
28+ ];
29+
30+ meta = with lib; {
31+ description = "Python module for generate and verify Luhn check digits";
32+ homepage = "https://github.com/mmcloughlin/luhn";
33+ license = with licenses; [ mit ];
34+ maintainers = with maintainers; [ fab ];
35+ };
36+}
pkgs/top-level/python-packages.nix+2
@@ -4609,6 +4609,8 @@ in {
46094609
46104610 luftdaten = callPackage ../development/python-modules/luftdaten { };
46114611
4612+ luhn = callPackage ../development/python-modules/luhn { };
4613+
46124614 luxor = callPackage ../development/python-modules/luxor { };
46134615
46144616 luxtronik = callPackage ../development/python-modules/luxtronik { };