Files
nixpkgs/pkgs/development/python-modules/macaddress/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

39 lines
795 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
];
enabledTestPaths = [ "test.py" ];
meta = {
homepage = "https://github.com/mentalisttraceur/python-macaddress";
description = "Module for handling hardware identifiers like MAC addresses";
license = lib.licenses.bsd0;
maintainers = with lib.maintainers; [ netali ];
};
}