fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
38 lines
804 B
Nix
38 lines
804 B
Nix
{
|
|
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 ];
|
|
};
|
|
}
|