mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-22 04:57:56 +03:00
Merge pull request #245403 from NetaliDev/python-macaddress
This commit is contained in:
commit
62c111f296
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 ];
|
||||
};
|
||||
}
|
28
pkgs/development/python-modules/reprshed/default.nix
Normal file
28
pkgs/development/python-modules/reprshed/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user