Files
nixpkgs/pkgs/development/python-modules/macaddress/default.nix
T
Wolfgang Walther f363956c3c python3Packages.macaddress: remove useless $src from pytestFlagsArray
We'd like to avoid bash eval in pytestFlagsArray, because we want to get
rid of support for it. This case works just fine without.
2024-11-12 21:09:42 +01:00

39 lines
797 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 = [ "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 ];
};
}