Merge pull request #245403 from NetaliDev/python-macaddress

This commit is contained in:
Janik 2023-07-25 20:14:13 +02:00 committed by GitHub
commit 62c111f296
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 73 additions and 0 deletions

View 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 ];
};
}

View File

@ -0,0 +1,28 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
}:
buildPythonPackage rec {
pname = "python-reprshed";
version = "1.0.6";
format = "setuptools";
src = fetchFromGitHub {
owner = "mentalisttraceur";
repo = "python-reprshed";
rev = "v${version}";
hash = "sha256-XfmiewI74eDLKTAU6Ed76QXfJYMRb+idRACl6CW07ME=";
};
pythonImportsCheck = [
"reprshed"
];
meta = with lib; {
homepage = "https://github.com/mentalisttraceur/python-reprshed";
description = "A toolshed for writing great __repr__ methods quickly and easily";
license = licenses.bsd0;
maintainers = with maintainers; [ netali ];
};
}

View File

@ -6167,6 +6167,8 @@ self: super: with self; {
mac-vendor-lookup = callPackage ../development/python-modules/mac-vendor-lookup { };
macaddress = callPackage ../development/python-modules/macaddress{ };
macfsevents = callPackage ../development/python-modules/macfsevents {
inherit (pkgs.darwin.apple_sdk.frameworks) CoreFoundation CoreServices;
};
@ -10906,6 +10908,8 @@ self: super: with self; {
reproject = callPackage ../development/python-modules/reproject { };
reprshed = callPackage ../development/python-modules/reprshed { };
reqif = callPackage ../development/python-modules/reqif { };
requests-aws4auth = callPackage ../development/python-modules/requests-aws4auth { };