python3Packages.macaddress: init at 2.0.2
This commit is contained in:
parent
3575aa76c5
commit
e1823135fd
41
pkgs/development/python-modules/macaddress/default.nix
Normal file
41
pkgs/development/python-modules/macaddress/default.nix
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
{ 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 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -6167,6 +6167,8 @@ self: super: with self; {
|
||||||
|
|
||||||
mac-vendor-lookup = callPackage ../development/python-modules/mac-vendor-lookup { };
|
mac-vendor-lookup = callPackage ../development/python-modules/mac-vendor-lookup { };
|
||||||
|
|
||||||
|
macaddress = callPackage ../development/python-modules/macaddress{ };
|
||||||
|
|
||||||
macfsevents = callPackage ../development/python-modules/macfsevents {
|
macfsevents = callPackage ../development/python-modules/macfsevents {
|
||||||
inherit (pkgs.darwin.apple_sdk.frameworks) CoreFoundation CoreServices;
|
inherit (pkgs.darwin.apple_sdk.frameworks) CoreFoundation CoreServices;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue