python311Packages.ubelt: init at 1.3.4
This commit is contained in:
parent
bcfad0b5b2
commit
1115e9fcf3
70
pkgs/development/python-modules/ubelt/default.nix
Normal file
70
pkgs/development/python-modules/ubelt/default.nix
Normal file
@ -0,0 +1,70 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pythonOlder
|
||||
, setuptools
|
||||
, wheel
|
||||
, numpy
|
||||
, python-dateutil
|
||||
, xxhash
|
||||
, pytestCheckHook
|
||||
, requests
|
||||
, xdoctest
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "ubelt";
|
||||
version = "1.3.4";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Erotemic";
|
||||
repo = "ubelt";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-pvCmmdPRLupMUCiOvfa+JTX8NPFZ/UcXSPEaaDG3eTk=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
wheel
|
||||
];
|
||||
|
||||
passthru.optional-dependencies = {
|
||||
optional = [
|
||||
numpy
|
||||
python-dateutil
|
||||
xxhash
|
||||
];
|
||||
};
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
requests
|
||||
xdoctest
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
export HOME=$TMPDIR
|
||||
'';
|
||||
|
||||
disabledTests = lib.optionals stdenv.isDarwin [
|
||||
# fail due to sandbox environment
|
||||
"CacheStamp.expired"
|
||||
"userhome"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "ubelt" ];
|
||||
|
||||
__darwinAllowLocalNetworking = true;
|
||||
|
||||
meta = with lib; {
|
||||
description = "A Python utility library with a stdlib like feel and extra batteries. Paths, Progress, Dicts, Downloads, Caching, Hashing: ubelt makes it easy";
|
||||
homepage = "https://github.com/Erotemic/ubelt";
|
||||
changelog = "https://github.com/Erotemic/ubelt/blob/${src.rev}/CHANGELOG.md";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ natsukium ];
|
||||
};
|
||||
}
|
||||
@ -15135,6 +15135,8 @@ self: super: with self; {
|
||||
|
||||
uasiren = callPackage ../development/python-modules/uasiren { };
|
||||
|
||||
ubelt = callPackage ../development/python-modules/ubelt { };
|
||||
|
||||
uc-micro-py = callPackage ../development/python-modules/uc-micro-py { };
|
||||
|
||||
ucsmsdk = callPackage ../development/python-modules/ucsmsdk { };
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user