2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pytestCheckHook,
|
|
|
|
hypothesis,
|
|
|
|
reprshed,
|
2023-08-04 22:07:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
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=";
|
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "macaddress" ];
|
2023-08-04 22:07:22 +00:00
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
hypothesis
|
|
|
|
reprshed
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pytestFlagsArray = [ "$src/test.py" ];
|
2023-08-04 22:07:22 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/mentalisttraceur/python-macaddress";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Module for handling hardware identifiers like MAC addresses";
|
2023-08-04 22:07:22 +00:00
|
|
|
license = licenses.bsd0;
|
|
|
|
maintainers = with maintainers; [ netali ];
|
|
|
|
};
|
|
|
|
}
|