1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pytestCheckHook
5, hypothesis
6, reprshed
7}:
8
9buildPythonPackage rec {
10 pname = "macaddress";
11 version = "2.0.2";
12 format = "setuptools";
13
14 src = fetchFromGitHub {
15 owner = "mentalisttraceur";
16 repo = "python-macaddress";
17 rev = "v${version}";
18 hash = "sha256-2eD5Ui8kUduKLJ0mSiwaz7TQSeF1+2ASirp70V/8+EA=";
19 };
20
21 pythonImportsCheck = [
22 "macaddress"
23 ];
24
25 nativeCheckInputs = [
26 pytestCheckHook
27 hypothesis
28 reprshed
29 ];
30
31 pytestFlagsArray = [
32 "$src/test.py"
33 ];
34
35 meta = with lib; {
36 homepage = "https://github.com/mentalisttraceur/python-macaddress";
37 description = "A module for handling hardware identifiers like MAC addresses";
38 license = licenses.bsd0;
39 maintainers = with maintainers; [ netali ];
40 };
41}