depot/third_party/nixpkgs/pkgs/development/python-modules/macaddress/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

38 lines
802 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 = "Module for handling hardware identifiers like MAC addresses";
license = licenses.bsd0;
maintainers = with maintainers; [ netali ];
};
}