about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/macaddress/default.nix
blob: 2849506671b2b331b67c3a330b9919e9f57f30a9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, hypothesis
, reprshed
}:

buildPythonPackage rec {
  pname = "macaddress";
  version = "2.0.2";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "mentalisttraceur";
    repo = "python-macaddress";
    rev = "v${version}";
    hash = "sha256-2eD5Ui8kUduKLJ0mSiwaz7TQSeF1+2ASirp70V/8+EA=";
  };

  pythonImportsCheck = [
    "macaddress"
  ];

  nativeCheckInputs = [
    pytestCheckHook
    hypothesis
    reprshed
  ];

  pytestFlagsArray = [
    "$src/test.py"
  ];

  meta = with lib; {
    homepage = "https://github.com/mentalisttraceur/python-macaddress";
    description = "A module for handling hardware identifiers like MAC addresses";
    license = licenses.bsd0;
    maintainers = with maintainers; [ netali ];
  };
}