python3Packages.macaddress: init at 2.0.2

This commit is contained in:
Jennifer Graul 2023-07-25 16:14:40 +02:00
parent 3575aa76c5
commit e1823135fd
No known key found for this signature in database
GPG key ID: 144607B4C4EE1E6E
2 changed files with 43 additions and 0 deletions

View file

@ -0,0 +1,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 ];
};
}

View file

@ -6167,6 +6167,8 @@ self: super: with self; {
mac-vendor-lookup = callPackage ../development/python-modules/mac-vendor-lookup { };
macaddress = callPackage ../development/python-modules/macaddress{ };
macfsevents = callPackage ../development/python-modules/macfsevents {
inherit (pkgs.darwin.apple_sdk.frameworks) CoreFoundation CoreServices;
};